I’m rendering a scene to a texture using FBOs and then rendering a textured cube to the default framebuffer using the created texture.
I’m not using light at all, but the scene seems to be lighted. The farther I get from the cube the darker it gets.
If I use a normal texture everything is ok.
I’m also blitting the texture directly to the screen (glBlitFramebuffer), and the texture looks ok (no light)
Using OpenGL version 3.2.0 NVIDIA 195.36.15 on Ubuntu karmic
Any ideas why could this be happening?
Download code from here