|
|
pd3dDevice->SetClipPlane(0, (float*)f); //clip by plane
pd3dDevice->SetRenderState(D3DRS_CLIPPLANEENABLE, 1);
A point with homogeneous coordinates (x, y, z, w) is visible in the half space of the plane if Ax + By + Cz + Dw >= 0. Points that exist behind the clipping plane are clipped from the scene.
就是裁剪面上面的点会显示,下面的点被拆掉。
我想要相反的效果怎么作呢?
比如我要保留 y=0 平面以下的点,裁掉以上的点,这个状态怎么设呢? |
|