View Full Version : 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.
alankritha
mikael_aronsson
01-04-2004, 09:12 AM
I don't think your question i very valid in the beginners forum...
AdrianD
01-05-2004, 03:48 AM
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: http://oss.sgi.com/projects/ogl-sample/registry/NV/register_combiners.txt http://oss.sgi.com/projects/ogl-sample/registry/ARB/texture_env_combine.txt http://oss.sgi.com/projects/ogl-sample/registry/ARB/texture_env_crossbar.txt
for fragment programs: http://oss.sgi.com/projects/ogl-sample/registry/ARB/fragment_program.txt
dorbie
01-05-2004, 10:12 AM
Moving thread to the shaders forum. Someone there may give you specific help.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.