--------------------------------------------------------------------------- Convert Matlab color parameters to obj parameters --------------------------------------------------------------------------- Form: [Ns, d, illum, Kd, Ks, Ka] = MatlabColorToObj( faceColor, specularStrength, specularExponent, diffuseStrength, specularColorReflectance ) --------------------------------------------------------------------------- ------ Inputs ------ faceColor (1,3) Face color specularStrength (1,1) Specular strength specularExponent (1,1) Specular exponent diffuseStrength (1,1) Diffuse exponent specularColorReflectance (1,1) Specular color reflectance ------- Outputs ------- Ns (1,1) Shininess 10 = 91