Revision 843646bd
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/fbo/FBORenderer.java | ||
---|---|---|
140 | 140 |
mRoot = new DistortedTree(lisa, mEffects,new MeshFlat(1,1)); |
141 | 141 |
mRoot.attach(grid,gridEffects,new MeshCubes(10,10,false)); |
142 | 142 |
|
143 |
DistortedFramebuffer tmp = mRoot.getFramebuffer(); |
|
144 |
tmp.setDepthAttachment(true); |
|
145 |
|
|
143 | 146 |
float factor = lisaWidth/(2.0f*gridWidth); |
144 | 147 |
|
145 | 148 |
gridEffects.move( new Static3D( (lisaWidth-factor*gridWidth)/2,(lisaHeight-factor*gridHeight)/2,0) ); |
Also available in: Unified diff
First attempt at making it possible to dynamically add and remove DEPTH attachments from an FBO.