i'm doing deferred shading. i use a framebuffer which attach 4 color texture and 1 depth texture as geometrypass.
i try to rebuild world position using depth, and use it for lighting.
so i need to use depth in my fragment shader,and i want my depth texture to be more precise like 16bits or 24bits or more.
but when i read from depth texture in the 2nd shader,it seems depth_component24 is not work,i can get the depth but it behaves like a 8bits depth beacuse my light model works but not accurate.
i use the same code on PC and it works fine.
(i use highp in my shader,)
so does anyone know the reason?
or anyone successfully read from more than 8bit depth texture?
thanks a lot! jörg.
It's the reason. I use highp float but forget to use highp Sampler2D.