PDA

View Full Version : RGB verts + lighting possible?



rantrod
02-06-2001, 10:42 AM
is it possible to have a polygon that shows the vert's RGBs with lighting turned on?

I create a triangle with (you guessed it) a red vertex, a blue vertex, and a green vertex. When I turn lighting on, the whole triangle shows up as white/dark depending on angle to light source.

On a related note, is it possible to have the RGBs show through the texturing to give the texture a tint?

DFrey
02-06-2001, 10:54 AM
For the first problem, enable GL_COLOR_MATERIAL.

For the second, yes, if the texture environment mode is GL_MODULATE.