Project

General

Profile

« Previous | Next » 

Revision 984dc935

Added by Leszek Koltunski almost 7 years ago

10% speedup with postprocessing.

View differences:

src/main/java/org/distorted/library/EffectQueuePostprocess.java
257 257
      }
258 258
    }
259 259

  
260
///////////////////////////////////////////////////////////////////////////////////////////////////
261

  
262
  int getHalo()
263
    {
264
    return mNumEffects>0 ? (int)mUniforms[0] : 0;
265
    }
266

  
260 267
///////////////////////////////////////////////////////////////////////////////////////////////////
261 268

  
262 269
  int postprocess(long time, DistortedOutputSurface surface)
......
319 326

  
320 327
      // after each postprocess, clear the STENCIL
321 328
      buffer2.setAsOutput(time);
329
      GLES30.glStencilMask(0xff);
330
      GLES30.glClearStencil(0);
322 331
      GLES30.glClear(GLES30.GL_STENCIL_BUFFER_BIT);
323 332
      }
324 333

  

Also available in: Unified diff