Hello.
A while ago I was trying to use some vertex program in my program, it did not really work out though. Just now I made another attempt and although the result was not better at all I think that I can describe my problem in a better way now.
(I am quite sure that the vertex program code is correct so I wont post it for now)
I am doing a multi-pass rendering to get per pixel lighting on a GF2, it is based on ron fraziers code, so if you know that one it might help.
The vp only alters the color to green (as a test)
-Enable vp.
-Draw the first pass (only geometry and
texture) for the ambient stuff.
-Disable vp.
-Draw diffuse light passes.
I get a green ambient color but the rest of the passes are somehow corrupted. I find it hard to describe, it looks just wrong.
Than I did this:
-Enable vp.
-Draw the first pass (only geometry and
texture) for the ambient stuff.
-Draw diffuse light passes.
-Disable vp.
This of course made all the light go away as I only proces color and 1 texture-unit, but the ambient was green and nice.
This makes me think that there is some problem with the multipass rendering.
Do I have to think about more than just to disable the vp after the first pass?
I know this is a long post and thank you for your time!