Project

General

Profile

« Previous | Next » 

Revision b36613d8

Added by Leszek Koltunski about 6 years ago

small correction for blending OIT colors.

View differences:

src/main/java/org/distorted/library/main/DistortedOutputSurface.java
281 281
    GLES31.glDisable(GLES31.GL_STENCIL_TEST);
282 282
    GLES31.glStencilMask(0x00);
283 283

  
284
    DistortedEffects.blitDepthPriv(this, buffer.getWidthCorrection(), buffer.getHeightCorrection() );
284
    DistortedEffects.blitDepth(this, buffer.getWidthCorrection(), buffer.getHeightCorrection() );
285 285
    GLES31.glActiveTexture(GLES31.GL_TEXTURE0);
286 286
    GLES31.glBindTexture(GLES31.GL_TEXTURE_2D, 0);
287 287
    GLES31.glActiveTexture(GLES31.GL_TEXTURE1);
......
292 292

  
293 293
///////////////////////////////////////////////////////////////////////////////////////////////////
294 294

  
295
  private int blitWithDepthRender(long currTime, DistortedOutputSurface buffer)
295
  private int mergeOIT(long currTime, DistortedOutputSurface buffer)
296 296
    {
297 297
    GLES31.glViewport(0, 0, mWidth, mHeight);
298 298
    setAsOutput(currTime);
......
301 301

  
302 302
    DistortedRenderState.enableStencil();
303 303

  
304
    DistortedEffects.blitDepthRenderPriv(this, buffer.getWidthCorrection(), buffer.getHeightCorrection() );
304
    DistortedEffects.mergeOIT(this, buffer.getWidthCorrection(), buffer.getHeightCorrection() );
305 305
    GLES31.glActiveTexture(GLES31.GL_TEXTURE1);
306 306
    GLES31.glBindTexture(GLES31.GL_TEXTURE_2D, 0);
307 307

  
......
390 390
          numRenders += currQueue.postprocess(mBuffer);
391 391
          numRenders += blitWithDepth(time, mBuffer[quality]);
392 392
          GLES31.glMemoryBarrier(GLES31.GL_ALL_BARRIER_BITS);
393
          numRenders += blitWithDepthRender(time,mBuffer[quality]);  // merge the OIT linked list
393
          numRenders += mergeOIT(time,mBuffer[quality]);  // merge the OIT linked list
394 394
          clearBuffer(mBuffer[quality]);
395 395
          }
396 396
        }

Also available in: Unified diff