Lapinot
06-30-2005, 08:22 AM
Hi
I've some problems with the kil instruction.
The documentation says, for KIL v1 that if v1.x or v1.y or v1.z or v1.w is negatif, then the fragment will be killed (and so, never displayed).
But does it then exit the fragment program? Because i'm actually using KIL in a loop, and I've the feeling that KIL doesn't break the loop. Is it normal?
My pseudo code:
Loop ....
....
SUBC val1, val2, val3;
KIL val1
...
endloop
If val1 is negatif, I want to kill the fragment and exit the loop (there is no interest to stay in the loop, if the fragment is killed).
Thanks
I've some problems with the kil instruction.
The documentation says, for KIL v1 that if v1.x or v1.y or v1.z or v1.w is negatif, then the fragment will be killed (and so, never displayed).
But does it then exit the fragment program? Because i'm actually using KIL in a loop, and I've the feeling that KIL doesn't break the loop. Is it normal?
My pseudo code:
Loop ....
....
SUBC val1, val2, val3;
KIL val1
...
endloop
If val1 is negatif, I want to kill the fragment and exit the loop (there is no interest to stay in the loop, if the fragment is killed).
Thanks