Author Topic: User clipping planes  (Read 4063 times)

0 Members and 1 Guest are viewing this topic.

JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1893
    • View Profile
    • Geeks3D.com
User clipping planes
« on: November 03, 2014, 04:52:51 PM »
The support of user clipping planes has been added to GLSL Hacker 0.8.0+.  User clipping planes are very easy to use: you need a GLSL program that deals with gl_ClipDistance and you need to enable one of the available user clipping planes with gh_renderer.enable_state("GL_CLIP_DISTANCE0").

A demo is available in the host_api/Clip_Planes/ folder of the code sample pack v2.25.0.

This demo is based on this article: http://github.prideout.net/clip-planes/