SetRenderState(ClipPlaneEnable) - what value?

Started by
0 comments, last by Demirug 13 years, 9 months ago
I can't figure out if I am passing the correct ClipPlaneEnable value in SlimDX.

I am using the code:

SetRenderState(RenderState.ClipPlaneEnable, 1 >> HighestClipPlaneIndex);

Is that correct?
Advertisement
It’s a bit mask where each bit stand for a clip plane. You need to binary or each plane you want to activate.

This topic is closed to new replies.

Advertisement