qedl中的fixDepth()简化

如果将PerspectiveMode的设置为1,则会传递zNear和Zfar,在fixDepth()中,

而将perspectiveMode = 0,则大大简化fixDepth()

"float fixDepth(float depth)"
"{																							 "
"	return clamp(1.0 - depth, 0.0, 1.0);													 "
"}													

效果也没有影响

qedl中的fixDepth()简化_第1张图片

你可能感兴趣的:(osg例子调试,osg)