[GLSL] What does "product" mean in gl_FrontLightProduct?

Started by
1 comment, last by riruilo 14 years, 4 months ago
Hi all! What does "product" mean in gl_FrontLightProduct? Thanks.
I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched C-beams glitter in the dark near the Tannhauser gate. All those moments will be lost in time, like tears in rain. Time to die.
Advertisement
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
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.
I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched C-beams glitter in the dark near the Tannhauser gate. All those moments will be lost in time, like tears in rain. Time to die.

This topic is closed to new replies.

Advertisement