Per Pixel Lightning : problem

Sorry to take the message from another forum but I don’t know how can I insert some source code.

Here’s my message :
http://www.flipcode.com/cgi-bin/msg.cgi?showThread=00006016&forum=3dtheory&id=-1

Thanks for you answers …

SetupRegisterCombiners():

glCombinerParameterfvNV(GL_CONSTANT_COLOR0_NV, (float *) &light_color);

should be:

glCombinerParameterfvNV(GL_CONSTANT_COLOR0_NV, (float *) light_color);

No “&” infront of “light_color”.
Perhaps this will work!?

… but I don’t know how can I insert some source code.

Check the FAQ for this discussion board on how to do things like that.

-SirKnight

Thanks for your help, the problem was coming from the blending, if you want to follow the full story, see :
http://www.gamedev.net/community/forums/topic.asp?whichpage=2&pagesize=20&topic_id=115412