Revision f5c28afc
Added by Leszek Koltunski over 7 years ago
| src/main/java/org/distorted/examples/blur/BlurRenderer.java | ||
|---|---|---|
| 67 | 67 |
mView = v; |
| 68 | 68 |
mMesh = new MeshFlat(1,1); |
| 69 | 69 |
mScreen = new DistortedScreen(); |
| 70 |
mBuffer = new DistortedFramebuffer(SIZE,SIZE); |
|
| 70 |
mBuffer = new DistortedFramebuffer(SIZE,SIZE,1, DistortedFramebuffer.DEPTH_NO_STENCIL);
|
|
| 71 | 71 |
|
| 72 | 72 |
mRadiusSta = new Static1D(5); |
| 73 | 73 |
Dynamic1D radiusDyn = new Dynamic1D(); |
| src/main/java/org/distorted/examples/mirror/MirrorRenderer.java | ||
|---|---|---|
| 138 | 138 |
if( mOffScreen1!=null ) mOffScreen1.markForDeletion(); |
| 139 | 139 |
if( mOffScreen2!=null ) mOffScreen2.markForDeletion(); |
| 140 | 140 |
|
| 141 |
mOffScreen1 = new DistortedFramebuffer(mScreenW,mScreenH);
|
|
| 142 |
mOffScreen2 = new DistortedFramebuffer( (int)(MIRROR_SCALE*mScreenW), (int)(MIRROR_SCALE*mScreenH) ); |
|
| 141 |
mOffScreen1 = new DistortedFramebuffer( mScreenW, mScreenH, 0, DistortedFramebuffer.NO_DEPTH_NO_STENCIL );
|
|
| 142 |
mOffScreen2 = new DistortedFramebuffer( (int)(MIRROR_SCALE*mScreenW), (int)(MIRROR_SCALE*mScreenH), 0, DistortedFramebuffer.NO_DEPTH_NO_STENCIL );
|
|
| 143 | 143 |
|
| 144 | 144 |
mScaleMirror.set( (float)mScreenW/mMirrorW, (float)mScreenH/mMirrorH, 1.0f); |
| 145 | 145 |
mMoveOffscreen2.set( MIRROR_MOVE*mScreenW, MIRROR_MOVE*mScreenH*mMirrorW/mMirrorH, 0); |
| src/main/java/org/distorted/examples/save/SaveRenderer.java | ||
|---|---|---|
| 250 | 250 |
if( mTexture==null ) mTexture = new DistortedTexture(bmpWidth,bmpHeight); |
| 251 | 251 |
mTexture.setTexture(bitmap); |
| 252 | 252 |
|
| 253 |
if( mOffscreen==null ) mOffscreen = new DistortedFramebuffer( (int)(mScale*bmpWidth) , (int)(mScale*bmpHeight) ); |
|
| 253 |
if( mOffscreen==null ) mOffscreen = new DistortedFramebuffer( (int)(mScale*bmpWidth) , (int)(mScale*bmpHeight), |
|
| 254 |
0, DistortedFramebuffer.NO_DEPTH_NO_STENCIL); |
|
| 254 | 255 |
|
| 255 | 256 |
mOffscreen.detachAll(); |
| 256 | 257 |
mOffscreen.attach(mTexture,mEffects,mMesh); |
Also available in: Unified diff
OIT: fixes. Everything looks correct now except for the curious return of the 'dancing lower-left corner' small glitch in the 'Transparency' app.