kil4h
09-18-2010, 07:19 PM
Hello all,
Sorry for posting such a obvious question, but I am willing to confirm a FBO depth texture behavior.
In order to have a depth test on the FBO you create, you need to have a depth buffer or texture. So if FBO color buffer displays correctly, means that the depth buffer/texture is performing as it should since depth test was passed.
The reason I am asking this, is due to a FBO behavior I am suffering. My color buffer is correctly been displayed on a quad as a texture, yet my depth texture is not. My main concern on this is that it should be displayed as a luminance texture on the quad, but the values are all 1.0. Looks like it was unused by the FBO when rendering.
Any hints on what may be happening?
Regards.
Sorry for posting such a obvious question, but I am willing to confirm a FBO depth texture behavior.
In order to have a depth test on the FBO you create, you need to have a depth buffer or texture. So if FBO color buffer displays correctly, means that the depth buffer/texture is performing as it should since depth test was passed.
The reason I am asking this, is due to a FBO behavior I am suffering. My color buffer is correctly been displayed on a quad as a texture, yet my depth texture is not. My main concern on this is that it should be displayed as a luminance texture on the quad, but the values are all 1.0. Looks like it was unused by the FBO when rendering.
Any hints on what may be happening?
Regards.