Revision fd2db957
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/EffectQueuePostprocess.java | ||
---|---|---|
245 | 245 |
if( radius%2 == 1 ) |
246 | 246 |
{ |
247 | 247 |
int index = offset + radius/2 +1; |
248 |
offsetsCache[index]=mOffsets[radius];
|
|
248 |
offsetsCache[index]=radius;
|
|
249 | 249 |
weightsCache[index]=mWeights[radius]; |
250 | 250 |
} |
251 | 251 |
} |
Also available in: Unified diff
1) bugfix computing Gaussian BLUR kernel (for odd radii, the last offset was incorrectly computed)
2) introduce more advanced method of detecting BLUR halo (compute depths in a new way)