PDA

View Full Version : secondary color, ARB_vertex_program, NVIDIA



Zeno
11-12-2003, 11:42 AM
Has anyone successfully used separate specular with only a vertex program (no fragment program)?

I am on an FX 5600 with driver version 52.16 and it seems to ignore anything I write to result.color.secondary from my fragment program (even if it's just a constant 1.0). I have tried it with and without calling glLightModeli( GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR ); first.

Any suggestions?

Thanks,
Zeno

jra101
11-12-2003, 11:49 AM
You need to enable GL_COLOR_SUM_ARB

Zeno
11-12-2003, 11:56 AM
That was it http://www.opengl.org/discussion_boards/ubb/smile.gif. I see it's even in the spec, I just missed it.