PDA

View Full Version : texture and pixel shader



icare
01-27-2003, 12:40 AM
i have a scene with triangles. Each triangles are stored as attributes of a screen filling quad with some other data like normal, color, and some vectors. these vectors and the normal are stores in textures coordinates.
Now i want to load this data from these vector to make some computation in the pixel shader. i think the built-in variable :
.attribute vec4 gl_multitexcoord*;
.varying vec4 gl_texcoord* ;
are usefull but i don't know how to use them?
If u want to know more: http://www.cs.uiuc.edu/Dienst/Repository/2.0/Body/ncstrl.uiuc_cs/UIUCDCS-R-2002-2269/pdf

thx for u answers http://www.opengl.org/discussion_boards/ubb/smile.gif

JustHanging
01-27-2003, 02:00 AM
This is not a beginners question. Please post this kind of questions on the advanced forum http://www.opengl.org/discussion_boards/ubb/smile.gif

icare
01-27-2003, 03:26 AM
right http://www.opengl.org/discussion_boards/ubb/smile.gif
i didn't notice i posted it in the beginner forum http://www.opengl.org/discussion_boards/ubb/smile.gif