PDA

View Full Version : Rectangle Textures and FragmentPrograms



phanlord
05-19-2005, 07:34 PM
Is it possible to invoke fragment program on
GL_TEXTURE_RECTANGLE_ARB texture ?
i tryed
running
!!ARBfp1.0
TEX result.color, fragment.texcoord[0], texture[0], rectangle; #tryed 2D aswell
END

but im getting invalid operand error :(

is it possible to use those two together ? if so how ? (simple replace of one color example would be very nice)

Relic
05-19-2005, 11:19 PM
Read the specs?
http://oss.sgi.com/projects/ogl-sample/registry/ARB/fragment_program.txt

<texTarget> ::= "1D"
| "2D"
| "3D"
| "CUBE"
| "RECT"Remember that texture coordinates on texture rectangles need to be unnormalized (width * height).