secondary color, ARB_vertex_program, NVIDIA

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?


You need to enable GL_COLOR_SUM_ARB

That was it . I see it’s even in the spec, I just missed it.