Revision 0273ef2a
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/library/effect/PostprocessEffectGlow.java | ||
---|---|---|
186 | 186 |
|
187 | 187 |
int radius = (int)(uniforms[index+1]*mQualityScale); |
188 | 188 |
if( radius>=MAX_RADIUS ) radius = MAX_RADIUS-1; |
189 |
if( radius<=0 ) radius = 1; |
|
189 | 190 |
computeGaussianKernel(radius); |
190 | 191 |
|
191 | 192 |
int offset = radius + radius*radius/4; |
Also available in: Unified diff
Fixes for pausing and restarting.