Revision e71dd7fb
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/library/effect/PostprocessEffectGlow.java | ||
---|---|---|
171 | 171 |
float offsetCorrW = corrW/w; |
172 | 172 |
float offsetCorrH = corrH/h; |
173 | 173 |
|
174 |
// try tracking the bug when sometimes the size of the GLOW overlay is wrong |
|
175 |
android.util.Log.e("glow", "w="+w+" h="+h+" corrW="+corrW+" corrH="+corrH); |
|
176 |
|
|
177 | 174 |
int radius = (int)(uniforms[index]*mQualityScale); |
178 | 175 |
if( radius>=MAX_HALO ) radius = MAX_HALO-1; |
179 | 176 |
computeGaussianKernel(radius); |
Also available in: Unified diff
Improve computation of the thickness of the postprocessing halo - should be independent of the size of underlying object now.
Still it is not completely ok, it appears to depend on the ModelView matrix (use the Effects3D app to rotate the object around Z-axis to see this)