Revision acb69927
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/stencil/StencilRenderer.java | ||
---|---|---|
107 | 107 |
///////////////// The Meat of this App - shamelessly ripped off https://open.gl/depthstencils /////////////////////// |
108 | 108 |
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
109 | 109 |
// Stuff to do just before we render the upper Cube |
110 |
// (nothing - i.e. use default OpenGL settings with one difference - in Distorted, Depth test is on by default)
|
|
110 |
// Nothing - i.e. use default OpenGL settings (one difference - in Distorted, Depth Test is on by default).
|
|
111 | 111 |
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
112 | 112 |
// Stuff to do just before we render the Floor |
113 | 113 |
mFloorNode.glEnable(GLES30.GL_STENCIL_TEST); // Enable Stencil when rendering this Node |
Also available in: Unified diff
Minor