Revision 001fb991
Added by Leszek Koltunski almost 6 years ago
src/main/java/org/distorted/library/main/DistortedOutputSurface.java | ||
---|---|---|
388 | 388 |
// Otherwise, render to a buffer and on each change of Postprocessing Bucket, apply the postprocessing |
389 | 389 |
// to a whole buffer (lastQueue.postprocess) and merge it (this.oitBuild). |
390 | 390 |
|
391 |
/* |
|
392 |
int renderChildren1(long time, int numChildren, ArrayList<DistortedNode> children, int fbo, boolean oit) |
|
393 |
{ |
|
394 |
oitClear(this); |
|
395 |
setAsOutputFBO(time,fbo); |
|
396 |
mChildren.get(0).drawOIT(time, this); |
|
397 |
GLES31.glMemoryBarrier(GLES31.GL_SHADER_STORAGE_BARRIER_BIT | GLES31.GL_ATOMIC_COUNTER_BARRIER_BIT); |
|
398 |
oitRender(time, fbo); |
|
399 |
|
|
400 |
return 0; |
|
401 |
} |
|
402 |
*/ |
|
403 |
|
|
404 | 391 |
int renderChildren(long time, int numChildren, ArrayList<DistortedNode> children, int fbo, boolean oit) |
405 | 392 |
{ |
406 | 393 |
int quality=0, internalQuality = 0, numRenders = 0, bucketChange = 0; |
Also available in: Unified diff
Largely fix the non-postprocessed OIT. Still, one problem remains: back-facing surfaces seem to disappear (visible in 'Cubes')