[GLSL] What does "product" mean in gl_FrontLightProduct?
In mathematics, "product" means the same as "multiplied".
The front light product is the light parameters multiplied by the front-material parameters.
So, roughly speaking:
gl_FrontLightProduct == gl_FrontMaterial * gl_LightSource
See:
http://www.opengl.org/registry/doc/GLSLangSpec.1.50.09.pdf
The front light product is the light parameters multiplied by the front-material parameters.
So, roughly speaking:
gl_FrontLightProduct == gl_FrontMaterial * gl_LightSource
See:
http://www.opengl.org/registry/doc/GLSLangSpec.1.50.09.pdf
Quote:Original post by Hodgman
In mathematics, "product" means the same as "multiplied".
The front light product is the light parameters multiplied by the front-material parameters.
So, roughly speaking:
gl_FrontLightProduct == gl_FrontMaterial * gl_LightSource
See:
http://www.opengl.org/registry/doc/GLSLangSpec.1.50.09.pdf
Ok, thanks a lot. Very helpful.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement