Revision 8e88389e
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/library/main/DistortedEffects.java | ||
---|---|---|
445 | 445 |
|
446 | 446 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
447 | 447 |
|
448 |
void send(float halfW, float halfH, float halfZ, float inflate, DistortedOutputSurface surface, int variant)
|
|
448 |
void send(float halfX, float halfY, float halfZ, float marginInPixels, DistortedOutputSurface surface, int variant)
|
|
449 | 449 |
{ |
450 |
mM.send(surface,halfW,halfH,halfZ,variant); |
|
450 |
float inflate=0.0f; |
|
451 |
|
|
452 |
mM.send(surface,halfX,halfY,halfZ,variant); |
|
453 |
|
|
454 |
if( marginInPixels!=0.0f ) |
|
455 |
{ |
|
456 |
inflate = mM.magnify(surface,halfX,halfY,halfZ,marginInPixels); |
|
457 |
} |
|
458 |
|
|
451 | 459 |
mV.send(inflate,variant); |
452 | 460 |
} |
453 | 461 |
|
Also available in: Unified diff
Translate the size of the Halo around postprocessed objects from 'number pixels around the object' (as held in the Effects themselves) to a float suitable for Inflating the underlying Mesh with the per-vertex Inflate vectors.