Revision 7f30ed38
Added by Leszek Koltunski almost 6 years ago
src/main/java/org/distorted/library/main/DistortedOutputSurface.java | ||
---|---|---|
336 | 336 |
|
337 | 337 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
338 | 338 |
|
339 |
private int oitBuild(long currTime, DistortedOutputSurface buffer)
|
|
339 |
private int oitBuild(DistortedOutputSurface buffer) |
|
340 | 340 |
{ |
341 | 341 |
GLES31.glViewport(0, 0, mWidth, mHeight); |
342 |
setAsOutput(currTime);
|
|
342 |
setAsOutput(); |
|
343 | 343 |
GLES31.glActiveTexture(GLES31.GL_TEXTURE0); |
344 | 344 |
GLES31.glBindTexture(GLES31.GL_TEXTURE_2D, buffer.mColorH[0]); |
345 | 345 |
GLES31.glActiveTexture(GLES31.GL_TEXTURE1); |
... | ... | |
450 | 450 |
} |
451 | 451 |
|
452 | 452 |
numRenders += lastQueue.postprocess(mBuffer); |
453 |
numRenders += mBufferOIT.oitBuild(time, mBuffer[quality]);
|
|
453 |
numRenders += mBufferOIT.oitBuild(mBuffer[quality]); |
|
454 | 454 |
clearBuffer(mBuffer[quality]); |
455 | 455 |
} |
456 | 456 |
|
... | ... | |
471 | 471 |
} |
472 | 472 |
|
473 | 473 |
numRenders += currQueue.postprocess(mBuffer); |
474 |
numRenders += mBufferOIT.oitBuild(time, mBuffer[quality]);
|
|
474 |
numRenders += mBufferOIT.oitBuild(mBuffer[quality]); |
|
475 | 475 |
GLES31.glMemoryBarrier(GLES31.GL_SHADER_STORAGE_BARRIER_BIT); |
476 | 476 |
numRenders += oitRender(time,mBufferOIT); // merge the OIT linked list |
477 | 477 |
clearBuffer(mBuffer[quality]); |
Also available in: Unified diff
OIT: more bugfixes