• Advertisement
Sign in to follow this  

D3D Clip planes with vertex shader

This topic is 4255 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,all I set a user defined clip plane.It works fine in fixed function pipeline.But it seems not working when I using a vertex shader. How can I access the clip plane in the shader and ignore the pixel which clipped by the plane? Thanks a lot!

Share this post


Link to post
Share on other sites
Advertisement
From SetClipPlane()

"When the fixed function pipeline is used the plane equations are assumed to be in world space. When the programmable pipeline is used the plane equations are assumed to be in the clipping space (the same space as output vertices)."

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement