]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programbuilder.h
Support user clip planes in generated shaders
[libs/gl.git] / source / programbuilder.h
index ecd006d552709eec6656a3409efe47b5bb6afa51..97a706e077d93d3729c65eba5290c5a6a5b285e2 100644 (file)
@@ -98,6 +98,12 @@ public:
                equivalend in the pipeline. */
                bool reflection;
 
+               /** Clip primitives against user defined clip planes. */
+               bool clipping;
+
+               /** Number of clipping planes to process. */
+               unsigned max_clip_planes;
+
                /** Force the use of legacy shaders conforming to GLSL 1.10.   Defaults
                to true if the version of GLSL is less than 1.30, false otherwise. */
                bool legacy;