Revision a929d64d
Added by Leszek Koltunski over 6 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,1, DistortedFramebuffer.DEPTH_NO_STENCIL); |
|
70 |
mBuffer = new DistortedFramebuffer(SIZE,SIZE,1, DistortedFramebuffer.NO_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, 0, DistortedFramebuffer.NO_DEPTH_NO_STENCIL );
|
|
142 |
mOffScreen2 = new DistortedFramebuffer( (int)(MIRROR_SCALE*mScreenW), (int)(MIRROR_SCALE*mScreenH), 0, DistortedFramebuffer.NO_DEPTH_NO_STENCIL );
|
|
141 |
mOffScreen1 = new DistortedFramebuffer( mScreenW, mScreenH, 1, DistortedFramebuffer.NO_DEPTH_NO_STENCIL );
|
|
142 |
mOffScreen2 = new DistortedFramebuffer( (int)(MIRROR_SCALE*mScreenW), (int)(MIRROR_SCALE*mScreenH), 1, 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 | ||
---|---|---|
251 | 251 |
mTexture.setTexture(bitmap); |
252 | 252 |
|
253 | 253 |
if( mOffscreen==null ) mOffscreen = new DistortedFramebuffer( (int)(mScale*bmpWidth) , (int)(mScale*bmpHeight), |
254 |
0, DistortedFramebuffer.NO_DEPTH_NO_STENCIL);
|
|
254 |
1, DistortedFramebuffer.NO_DEPTH_NO_STENCIL);
|
|
255 | 255 |
|
256 | 256 |
mOffscreen.detachAll(); |
257 | 257 |
mOffscreen.attach(mTexture,mEffects,mMesh); |
Also available in: Unified diff
OIT: more fixes