Hi,
I wrote a classic fragment program that does ‘per pixel lighting’ and it works well with 1 lights.
I wants now to have multiple light and I try with multiple pass rendering. So I enable blending with the following lines :
glBlendFunc(GL_ONE, GL_ONE);
glEnable(GL_BLEND);
I also use the following depth test :
GL_LEQUAL
The problem is that I get strange results for the second lights. The light contribution for it seems not smooth.
I can provide more informations if needed.
Thanks for your help.