Project

General

Profile

« Previous | Next » 

Revision 864e7b05

Added by Leszek Koltunski almost 7 years ago

Minor

View differences:

src/main/java/org/distorted/examples/stencil/StencilRenderer.java
120 120
      /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
121 121
      // Stuff to do just before we render the lower Cube
122 122
      mCube2Node.glEnable(GLES30.GL_STENCIL_TEST);                               // Enable Stencil when rendering this Node
123
                                                                                 // no, this is not retained; we have to set
124
                                                                                 // this again even though Floor just set it
123 125
      mCube2Node.glStencilFunc(GLES30.GL_EQUAL, 1, 0xFF);                        // Pass test if stencil value is 1
124 126
      mCube2Node.glStencilMask(0x00);                                            // Don't write anything to stencil buffer
125 127
      mCube2Node.glDepthMask(true);                                              // Write to depth buffer

Also available in: Unified diff