Revision 9bea2f59
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/fbo/FBORenderer.java | ||
---|---|---|
71 | 71 |
if( mRoot!=null ) |
72 | 72 |
{ |
73 | 73 |
DistortedFramebuffer fbo = mRoot.getFramebuffer(); |
74 |
fbo.setDepthAttachment(depth);
|
|
74 |
fbo.enableDepthAttachment(depth);
|
|
75 | 75 |
} |
76 | 76 |
} |
77 | 77 |
|
src/main/java/org/distorted/examples/multiblur/MultiblurRenderer.java | ||
---|---|---|
33 | 33 |
import org.distorted.library.MeshCubes; |
34 | 34 |
import org.distorted.library.MeshObject; |
35 | 35 |
import org.distorted.library.type.DynamicQuat; |
36 |
import org.distorted.library.type.Static1D; |
|
36 | 37 |
import org.distorted.library.type.Static3D; |
37 | 38 |
import org.distorted.library.type.Static4D; |
38 | 39 |
|
... | ... | |
84 | 85 |
mEffects = new DistortedEffects[NUM_OBJECTS]; |
85 | 86 |
for(int i=0; i<NUM_OBJECTS; i++) mEffects[i] = new DistortedEffects(); |
86 | 87 |
|
88 |
mEffects[0].blur(new Static1D(10)); |
|
89 |
|
|
87 | 90 |
mMesh = new MeshCubes(1,1,false); |
88 | 91 |
|
89 | 92 |
mTex1 = new DistortedTexture(OBJ_SIZE,OBJ_SIZE); |
Also available in: Unified diff
Some fixes for issues discovered by the Multiblur app.