Revision a13dde77
Added by Leszek Koltunski almost 6 years ago
src/main/java/org/distorted/library/main/DistortedEffects.java | ||
---|---|---|
443 | 443 |
|
444 | 444 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
445 | 445 |
|
446 |
void drawPrivOIT(float halfW, float halfH, MeshObject mesh, DistortedOutputSurface surface, long currTime, float marginInPixels) |
|
446 |
void send(float halfW, float halfH, float halfZ, float margin, DistortedOutputSurface surface, int variant) |
|
447 |
{ |
|
448 |
mM.send(surface,halfW,halfH,halfZ,margin,variant); |
|
449 |
mV.send(variant); |
|
450 |
} |
|
451 |
|
|
452 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
453 |
|
|
454 |
void drawPrivOIT(float halfW, float halfH, MeshObject mesh, DistortedOutputSurface surface, long currTime) |
|
447 | 455 |
{ |
448 | 456 |
float halfZ = halfW*mesh.zFactor; |
449 | 457 |
|
... | ... | |
465 | 473 |
GLES31.glVertexAttribPointer(mMainOITProgram.mAttribute[2], MeshObject.TEX_DATA_SIZE, GLES31.GL_FLOAT, false, MeshObject.VERTSIZE, MeshObject.OFFSET2); |
466 | 474 |
GLES31.glBindBuffer(GLES31.GL_ARRAY_BUFFER, 0); |
467 | 475 |
|
468 |
mM.send(surface,halfW,halfH,halfZ,marginInPixels,1);
|
|
476 |
mM.send(surface,halfW,halfH,halfZ,0,1);
|
|
469 | 477 |
mV.send(1); |
470 | 478 |
mF.send(1); |
471 | 479 |
|
... | ... | |
476 | 484 |
|
477 | 485 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
478 | 486 |
|
479 |
void drawPriv(float halfW, float halfH, MeshObject mesh, DistortedOutputSurface surface, long currTime, float marginInPixels)
|
|
487 |
void drawPriv(float halfW, float halfH, MeshObject mesh, DistortedOutputSurface surface, long currTime) |
|
480 | 488 |
{ |
481 | 489 |
float halfZ = halfW*mesh.zFactor; |
482 | 490 |
|
... | ... | |
496 | 504 |
GLES31.glVertexAttribPointer(mMainProgram.mAttribute[2], MeshObject.TEX_DATA_SIZE, GLES31.GL_FLOAT, false, MeshObject.VERTSIZE, MeshObject.OFFSET2); |
497 | 505 |
GLES31.glBindBuffer(GLES31.GL_ARRAY_BUFFER, 0); |
498 | 506 |
|
499 |
mM.send(surface,halfW,halfH,halfZ,marginInPixels,0);
|
|
507 |
mM.send(surface,halfW,halfH,halfZ,0,0);
|
|
500 | 508 |
mV.send(0); |
501 | 509 |
mF.send(0); |
502 | 510 |
|
Also available in: Unified diff
Progress with a more generic 'preprocess' stage of Postprocessing Effects.