!!ARBfp1.0 # # Fragment program to demonstrate OpenGL "fragment.position" # fragment attribute. This contains the integer pixel (x,y) # coordinates (measured with origin at the window bottom-left), # the depth-buffer Z coordinate (from 0 at the screen to 1 at # infinity), and the final display perspective divide 1/w. # # Orion Sky Lawlor, olawlor@acm.org, 2005/2/7 (Public Domain) # PARAM b={0.01,0.01,1000.0,1}; TEMP t; MUL t, fragment.position, b; FRC t,t; MOV result.color, t; END