hi,
The format of my depth texture is GL_DEPTH_COMPONENT but when I’m reading the texture in fragment program I have a rgba value. So what is the solution to get the correct floating value which is in the depth texture ?
float depth = texture2D(myTexture, vec2(gl_TexCoord[0])).x; ?
thanks