Project

General

Profile

« Previous | Next » 

Revision 95c441a2

Added by Leszek Koltunski about 7 years ago

Progress with Multiblur.

This introduces some regressions with transparency (see: 'Different Bitmaps' and 'Around the world' )

View differences:

src/main/java/org/distorted/library/DistortedNode.java
211 211
    return 0;
212 212
    }
213 213

  
214
///////////////////////////////////////////////////////////////////////////////////////////////////
215

  
216
  int postprocess(long currTime, DistortedOutputSurface surface)
217
    {
218
    return mEffects.postprocessPriv(currTime,surface);
219
    }
220

  
214 221
///////////////////////////////////////////////////////////////////////////////////////////////////
215 222

  
216 223
  DistortedFramebuffer getPostprocessingBuffer()
......
234 241
        numRenders += mChildren.get(i).renderRecursive(currTime);
235 242
        }
236 243

  
237
      mData.mFBO.setAsOutput();
238

  
239
      DistortedRenderState.colorDepthOn();
240

  
241
      GLES30.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
242
      GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT);
244
      mData.mFBO.setAsOutput(currTime);
243 245

  
244 246
      if( mSurface.setAsInput() )
245 247
        {

Also available in: Unified diff