I’m not sure if it’s me or what but i can’t find what I’m looking for in the spec for ARB_vp, ARB_fp
pow(0, 0) seems to give 1. This is correct right?
I think that pow(0, 0) is suppose to be undefined actually, but I guess there is an agreement that it should give 1.
For RCP and RSQ, it seems that division by 0 gives 0???
I need to do a if() inside ARB_fp, but since we can’t, I created a series of instructions that does what I want (except it wastes a few GPU cycles) and I have to rely on 0/0=0!
BTW, NV_fp says that pow(0, 0) = NaN and
0/0 = NaN, but I’m using ARB_fp