Revision fff1110e
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/EffectQueuePostprocess.java | ||
---|---|---|
75 | 75 |
|
76 | 76 |
int mQualityLevel; |
77 | 77 |
float mQualityScale; |
78 |
private int mHalo; |
|
78 | 79 |
|
79 | 80 |
///////////////////////////////////////////////////////////////////////////////// |
80 | 81 |
// BLUR effect |
... | ... | |
179 | 180 |
if( mTime==0 ) mTime = currTime; |
180 | 181 |
long step = (currTime-mTime); |
181 | 182 |
|
183 |
mHalo = 0; |
|
184 |
int halo; |
|
185 |
|
|
182 | 186 |
for(int i=0; i<mNumEffects; i++) |
183 | 187 |
{ |
184 | 188 |
mCurrentDuration[i] += step; |
... | ... | |
202 | 206 |
} |
203 | 207 |
|
204 | 208 |
if( mInter[1][i]!=null ) mInter[1][i].interpolateMain( mUniforms, NUM_UNIFORMS*i+1, mCurrentDuration[i], step); |
209 |
|
|
210 |
halo = (int)mUniforms[NUM_UNIFORMS*i]; |
|
211 |
if( halo>mHalo ) mHalo = halo; |
|
205 | 212 |
} |
206 | 213 |
|
207 | 214 |
mTime = currTime; |
... | ... | |
271 | 278 |
|
272 | 279 |
int getHalo() |
273 | 280 |
{ |
274 |
return mNumEffects>0 ? (int)mUniforms[0] : 0;
|
|
281 |
return mNumEffects>0 ? mHalo : 0;
|
|
275 | 282 |
} |
276 | 283 |
|
277 | 284 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Properly compute the Halo of a queue of postprocess effects.