Lapinot
06-03-2005, 06:37 AM
Hi
I have to read a value, in the fragment shader, using texture coordinates.
They exist the following command: TEX (e.g TEX result.depth, fragment.texcoord[1], texture[0], 3D; )
Definitin of TEX:
TEX v,u,t v texture sample
"v" indicates a floating-point vector input or output
"u" indicates a texture image unit identifier, and "t" indicates a texture target.
It means, fragment.texcoord[1] is the position in the texture where I want to read.
3D means that I'm working with a 3D texture
But what is texture[0]? How can I use it? How can I load data in the texture?
Thanks
I have to read a value, in the fragment shader, using texture coordinates.
They exist the following command: TEX (e.g TEX result.depth, fragment.texcoord[1], texture[0], 3D; )
Definitin of TEX:
TEX v,u,t v texture sample
"v" indicates a floating-point vector input or output
"u" indicates a texture image unit identifier, and "t" indicates a texture target.
It means, fragment.texcoord[1] is the position in the texture where I want to read.
3D means that I'm working with a 3D texture
But what is texture[0]? How can I use it? How can I load data in the texture?
Thanks