改动相机znear参数为-1,使得计算出的最终坐标z,w不相等,深度可以正常输出

This commit is contained in:
hyzboy 2019-07-11 11:47:43 +08:00
parent 47039ee9d8
commit 3a3c910ce9

View File

@ -277,6 +277,8 @@ public:
camera.height=h;
camera.center.Set(0,0,0,1);
camera.eye.Set(100,100,100,1);
camera.znear=-1;
camera.zfar=1;
camera.Refresh(); //更新矩阵计算
}