Revision 8a99c681
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/multiblur/MultiblurRenderer.java | ||
---|---|---|
198 | 198 |
mScreenMin = width<height ? width:height; |
199 | 199 |
|
200 | 200 |
float factor = 0.15f*mScreenMin/OBJ_SIZE; |
201 |
Static3D center = new Static3D( (float)OBJ_SIZE/2, (float)OBJ_SIZE/2, 0.0f );
|
|
201 |
Static3D center = new Static3D( (float)OBJ_SIZE/2, (float)OBJ_SIZE/2, -(float)OBJ_SIZE/2 );
|
|
202 | 202 |
Static3D moveVec= new Static3D( (width -factor*OBJ_SIZE)/2 ,(height-factor*OBJ_SIZE)/2 ,0); |
203 | 203 |
|
204 | 204 |
for(int i=0; i<NUM_OBJECTS; i++) |
Also available in: Unified diff
Make a MeshCubes object rendered with no effects have its front wall at the screen's surface (so that when we just replace MeshFlat with MeshCubes, it looks more similar)