Revision dd89c7f4
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/library/effect/FragmentEffectChroma.java | ||
---|---|---|
68 | 68 |
mBlend = blend; |
69 | 69 |
mColor = color; |
70 | 70 |
mCenter = center; |
71 |
mRegion = (region==null ? new Static3D(Float.MAX_VALUE,Float.MAX_VALUE, Float.MAX_VALUE) : region);
|
|
71 |
mRegion = (region==null ? MAX_REGION : region);
|
|
72 | 72 |
} |
73 | 73 |
|
74 | 74 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
86 | 86 |
mBlend = blend; |
87 | 87 |
mColor = color; |
88 | 88 |
mCenter = new Static3D(0,0,0); |
89 |
mRegion = new Static3D(Float.MAX_VALUE,Float.MAX_VALUE, Float.MAX_VALUE);
|
|
89 |
mRegion = MAX_REGION;
|
|
90 | 90 |
} |
91 | 91 |
|
92 | 92 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Bugfix: default, MAX region cannot be of Float.MAX_VALUE radius - then in the shader we can have an overflow. Make it 1000000 in radius.