DavidGraham
Veteran
How ? we were just talking about distances and light vectors and all that stuff , where do these ambient+diffuse+specular values fit in ?calculating Ambient color + diffusecolor + specular color is the lighting calculation.
Oh , I get it now , you mean the distance between the light source and a specific vertex , but isn't that the same as the light direction vector ?The farther you go from light sources, the weaker they become. So for an accurate lighting calculation, strength of each light source at that point is also considered.