Jump to content

Similar glClipPlane functionality


martyj
 Share

Recommended Posts

It would be nice to have access to glClipPlane in Lua for rendering UI. For example, we could use glClipPlane to make sure we didn't render outside of a Panel when rendering.

 

I wouldn't use glClipPlane per say, as it is limiting to GL_MAX_CLIP_PLANES -1. Which I believe is 6 on most hardware setups.

 

I would recomend the use of a Geometry Shader to have the ability to throw away verticies.

 

For performance reasons you could even limit clipping to 2D surfaces. Which I think would be the most common use case.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...