pixel shader

i want to know how to write the code in pixel shader to compute the squared difference between pixels using the register combiners.

    please help me i am in great need.

alankritha

the squared difference between which pixels do you want to compute? Register Combiners only work for one pixel at a time, so it’s not possible to compute the difference between different pixels.

and why are you in great need because of this?

Jan