Original Post
Hi Im trying to downsample the Ocean effect from RenderMonkeys Reflections example so i can use it on VS_1_1 / PS_1_1 hardware. The vertex shader works fine so does most of the pixel shader (just by changing some of the commands such as normalize to devide a vector by itself). but then i get to the Pow function (on the last line). I know it raises a number in the left to the power of the right hand perameter - which isnt intrinsic in PS_1_1, so normally speeking a for loop wold work: for(float i = 0; i < power; i++) { number *= number; } however PS_1_1 doesnt like looping to a variable and has a warning (loop does not exit in a timely manner). So i was wondering if anyone has succeeded in converting this effect to a lower level. Or if anyone has seen an ocean quad effect of a similar standard that i could use instead. thanks