However it seems not to return, since the final color I get is blue (0,0,1) and not red (1,0,0). What is the problem ?
Second question: how to “link” multiple fragment shaders, so that when the first fragment shader return, a second fragment shader do his job, based on results from the first fragment shader ?
However it seems not to return, since the final color I get is blue (0,0,1) and not red (1,0,0). What is the problem ?
Seems like a bug… Which gaphic card/driver do you use=
Second question: how to “link” multiple fragment shaders, so that when the first fragment shader return, a second fragment shader do his job, based on results from the first fragment shader ?
yes I agree it should be but it is not in the 3DLabs SDK example running with my Radeon 9800SE. But I’ll make another test with a clean code, not 3DLabs related.
No way… I’ve tried with Ffelagund’s ShaderDesigner (www.typhoonlabs.com) but it doesn’t change anything: I still have a blue render when I paste this code into a fragments shader: