PDA

View Full Version : how write a color to a texel when i have its UV coordinates ?



airseb
08-04-2005, 06:54 AM
Hi,
in a fragment shader, i have the fragment's color and i want to write this color to another texel which i have the coordinates.
Do you know how i can do ?

PS : please tell me if i'm not clear.

Peter_dup1
08-04-2005, 08:12 AM
My understanding of the GLSL specification is that you cannot control the fragment position from within the fragment shader, only the color and depth.

Peter

airseb
08-04-2005, 09:05 AM
ok thank you.