Revision 84d51487
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/library/main/DistortedEffects.java | ||
---|---|---|
403 | 403 |
postprocessCloned = false; |
404 | 404 |
} |
405 | 405 |
} |
406 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
407 |
|
|
408 |
EffectQueueMatrix getMatrix() |
|
409 |
{ |
|
410 |
return mM; |
|
411 |
} |
|
412 |
|
|
413 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
414 |
|
|
415 |
EffectQueueVertex getVertex() |
|
416 |
{ |
|
417 |
return mV; |
|
418 |
} |
|
419 |
|
|
420 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
421 |
|
|
422 |
EffectQueueFragment getFragment() |
|
423 |
{ |
|
424 |
return mF; |
|
425 |
} |
|
406 | 426 |
|
407 | 427 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
408 | 428 |
|
... | ... | |
447 | 467 |
GLES31.glDrawArrays(GLES31.GL_LINES, 0, 2*num); |
448 | 468 |
} |
449 | 469 |
|
450 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
451 |
|
|
452 |
void send(float halfX, float halfY, float halfZ, float marginInPixels, DistortedOutputSurface surface, int variant) |
|
453 |
{ |
|
454 |
float inflate=0.0f; |
|
455 |
|
|
456 |
mM.send(surface,halfX,halfY,halfZ,variant); |
|
457 |
|
|
458 |
if( marginInPixels!=0.0f ) |
|
459 |
{ |
|
460 |
inflate = mM.magnify(surface,halfX,halfY,halfZ,marginInPixels); |
|
461 |
} |
|
462 |
|
|
463 |
mV.send(inflate,variant); |
|
464 |
} |
|
465 |
|
|
466 | 470 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
467 | 471 |
|
468 | 472 |
void drawPrivOIT(float halfW, float halfH, MeshBase mesh, DistortedOutputSurface surface, long currTime) |
Also available in: Unified diff
Cut one interdependency between the EffectQueuePreprocess and DistortedEffects