Accessing Texels..
Hi,
Suppose I use FBO to render the resulting color to a texture (because of some reasons, I am unable to use RenderBuffer), how do I access each texel of the resulting texture ?
Thanks.
Use the FBO as a render to texture. Access the texture in your shader with
or if you want to read back the FBO use glReadPixels
or to read back from the texture glGetTexImage
vec4 texel = texture2D(tex, gl_TexCoord[0].xy);
or if you want to read back the FBO use glReadPixels
or to read back from the texture glGetTexImage
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement