Project

General

Profile

« Previous | Next » 

Revision c1a38ba3

Added by Leszek Koltunski almost 6 years ago

Progress with non-postprocessed OIT.

Status: compiles, but fails to work on both Adreno and Mali. Crashes the app (Adreno) or the whole system (Mali)

View differences:

src/main/java/org/distorted/library/main/DistortedNode.java
293 293
    return 0;
294 294
    }
295 295

  
296
///////////////////////////////////////////////////////////////////////////////////////////////////
297
// Use the Order Independent Transparency method to draw a non-postprocessed child.
298

  
299
  int drawOIT(long currTime, DistortedOutputSurface surface)
300
    {
301
    DistortedInputSurface input = mNumChildren[0]==0 ? mSurface : mData.mFBO;
302

  
303
    if( input.setAsInput() )
304
      {
305
      mState.apply();
306
      mEffects.drawPrivOIT(mSurface.getWidth()/2.0f, mSurface.getHeight()/2.0f, mMesh, surface, currTime, 0);
307
      return 1;
308
      }
309

  
310
    return 0;
311
    }
312

  
296 313
///////////////////////////////////////////////////////////////////////////////////////////////////
297 314
// return the total number of render calls issued
298 315

  

Also available in: Unified diff