clip plane

Started by
0 comments, last by Adam_42 16 years, 2 months ago
pd3dDevice->SetClipPlane(0, (float*)f); pd3dDevice->SetRenderState(D3DRS_CLIPPLANEENABLE, D3DCLIPPLANE0 ); for example, f[4] = {0,1,0,0}; it's ok to clip all vertexs below plane y=0; but I want to clip vertexs Above the plane y=0; how to do it ????
Advertisement
It should be as simple as negating the plane's normal:

f[4] = {0, -1, 0, 0};

This topic is closed to new replies.

Advertisement