please help me......

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.


I don’t think your question i very valid in the beginners forum…

you can’t write a “pixel shader”(its acutally called “fragment shader” in openGL) to setup the register combiners.
register combiners are set up using various gxTexEnv calls.
take a look at following extensions:

for register combiners:

for fragment programs:

Moving thread to the shaders forum. Someone there may give you specific help.