How to set Bit width/precision of the depth buffer(z buffer) in OGRE? -
i read zbuffer_value can found using
z_buffer_value = (1<<n) * ( + b / z )
where:
n = number of bits of z precision = zfar / ( zfar - znear ) b = zfar * znear / ( znear - zfar ) z = distance eye object
i using ogre 1.82. how set/know number "n" ? checked ogre::depthbuffer class found no hint number n. using nvidia gtx titanx
cross-post: same question ogre3d.org/forums
you can bit depth of depth buffer via method:
uint16 depthbuffer::getbitdepth() const
Comments
Post a Comment