Revision 42d62e7f
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/fbo/FBORenderer.java | ||
---|---|---|
83 | 83 |
// we can also, to save memory, delete/recreate |
84 | 84 |
// the depth buffer each time. This is optional. |
85 | 85 |
DistortedFramebuffer fbo = mRoot.getFramebuffer(); |
86 |
if( fbo!=null ) fbo.enableDepth(mDepth);
|
|
86 |
if( fbo!=null ) fbo.enableDepthStencil(mDepth ? DistortedFramebuffer.DEPTH_NO_STENCIL:DistortedFramebuffer.NO_DEPTH_STENCIL);
|
|
87 | 87 |
} |
88 | 88 |
|
89 | 89 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Add possibility to create FBOs with combined DEPTH/STENCIL.