Revision fe59d375
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/fbo/FBORenderer.java | ||
---|---|---|
81 | 81 |
public void onDrawFrame(GL10 glUnused) |
82 | 82 |
{ |
83 | 83 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
84 |
mScreen.renderTo(mRoot,System.currentTimeMillis());
|
|
84 |
mScreen.render(System.currentTimeMillis());
|
|
85 | 85 |
} |
86 | 86 |
|
87 | 87 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
152 | 152 |
mRoot = new DistortedNode(lisa, mEffects,new MeshFlat(1,1)); |
153 | 153 |
mRoot.attach(grid,gridEffects,new MeshCubes(10,10,false)); |
154 | 154 |
|
155 |
mScreen.detachAll(); |
|
156 |
mScreen.attach(mRoot); |
|
157 |
|
|
155 | 158 |
float factor = lisaWidth/(2.0f*gridWidth); |
156 | 159 |
|
157 | 160 |
gridEffects.move( new Static3D( (lisaWidth-factor*gridWidth)/2,(lisaHeight-factor*gridHeight)/2,0) ); |
Also available in: Unified diff
Change the the render() API!
THis introduces some regressions with the Effects3D app.