I am using assimp to import 3d models and I have a question on the default properties on materials, more specifically on the diffuse, ambient and specular material colors.
In assimp, if the model does not define any default, ambient or specular colors, it defaults to black (vec3(0.0)) as specified by http://assimp.sourceforge.net/lib_html/materials.html
However as I understand it the typical lighting equation for each light is something like:
// for each light... accumulatedLighting += ((material.ambientColor * light.ambientColor) + (material.diffuseColor * light.diffuseColor * attenuation) + (material.specularColor * light.specularColor * attenuation)); // final color output finalColor = diffuseTexture * accumulatedLighting;
Now if for example one of material properties is null, the light property won't matter. So it brings me to the question - what should be the default values of material diffuse/ambient/specular colors be since assimp defaults to vec3(0.0)?
(I'm using opengl 3.3+, assimp 3.0, per-pixel lighting)