Revision e49b26ba
Added by Leszek Koltunski about 6 years ago
src/main/java/org/distorted/library/main/EffectQueuePostprocess.java | ||
---|---|---|
71 | 71 |
{ |
72 | 72 |
mCurrentDuration[i] += step; |
73 | 73 |
|
74 |
// first zero out the 'alpha' because BLUR effect will not overwrite this (it is a 1D effect) |
|
75 |
// and if previously there was a GLOW effect here then mA would be non-zero and we don't want |
|
76 |
// that (see preprocess()) |
|
77 |
mUniforms[NUM_UNIFORMS*i+4]=0.0f; |
|
78 |
|
|
74 | 79 |
if( mEffects[i].compute(mUniforms, NUM_UNIFORMS*i, mCurrentDuration[i], step) ) |
75 | 80 |
{ |
76 | 81 |
for(int j=0; j<mNumListeners; j++) |
Also available in: Unified diff
Bugfix for the situation when we would be BLURring an object, then we remove the BLUR and apply a GLOW, then remove the GLOW and apply BLUR again - the second BLUR would assume the color of the GLOW.