我读到可以使用
找到zbuffer_valuez_buffer_value = (1<<N) * ( a + b / z )
其中:
N = number of bits of Z precision
a = zFar / ( zFar - zNear )
b = zFar * zNear / ( zNear - zFar )
z = distance from the eye to the object
我正在使用OGRE 1.82。如何设置/知道数字“N”?我检查了OGRE :: depthbuffer类,但没有找到数字N的提示。 我正在使用Nvidia GTX TitanX
答案 0 :(得分:0)