Revision fc695380
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/fbo/FBORenderer.java | ||
---|---|---|
71 | 71 |
{ |
72 | 72 |
if( mRoot!=null ) |
73 | 73 |
{ |
74 |
if( depth ) mRoot.glEnable (GLES30.GL_DEPTH_TEST); |
|
75 |
else mRoot.glDisable(GLES30.GL_DEPTH_TEST); |
|
76 |
|
|
77 |
mRoot.glDepthMask(depth); |
|
78 |
|
|
79 |
// we can also, to save memory, delete/recreate |
|
80 |
// the depth buffer each time. This is optional. |
|
74 | 81 |
DistortedFramebuffer fbo = mRoot.getFramebuffer(); |
75 | 82 |
fbo.enableDepth(depth); |
76 | 83 |
} |
Also available in: Unified diff
Make it possible to render each DistortedNode with adjustable OpeGL state (writeing to Color, Depth,Stencil buffers, DEPTH, STENCIL, BLENDING on.off, etc)