Revision 559da65d
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/examples/fbo/FBORenderer.java | ||
---|---|---|
82 | 82 |
|
83 | 83 |
// we can also, to save memory, delete/recreate |
84 | 84 |
// the depth buffer each time. This is optional. |
85 |
DistortedFramebuffer fbo = mRoot.getFramebuffer(); |
|
86 |
if( fbo!=null ) fbo.enableDepthStencil(mDepth ? DistortedFramebuffer.DEPTH_NO_STENCIL:DistortedFramebuffer.NO_DEPTH_STENCIL); |
|
85 |
mRoot.enableDepthStencil(mDepth ? DistortedFramebuffer.DEPTH_NO_STENCIL:DistortedFramebuffer.NO_DEPTH_NO_STENCIL); |
|
87 | 86 |
} |
88 | 87 |
|
89 | 88 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Progress with Stencil app. Rendering through an intermediate FBO still doesn't quite work.