martyj Posted May 25, 2015 Share Posted May 25, 2015 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. Quote Link to comment Share on other sites More sharing options...
Josh Posted May 26, 2015 Share Posted May 26, 2015 glClipPlane doesn't exist anymore! I think what you're describing is scissor test, and I agree. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
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.