Revision dd89c7f4
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/library/effect/VertexEffectPinch.java | ||
---|---|---|
97 | 97 |
super(EffectName.PINCH); |
98 | 98 |
mPinch = pinch; |
99 | 99 |
mCenter = center; |
100 |
mRegion = (region==null ? new Static4D(0,0,0, Float.MAX_VALUE) : region);
|
|
100 |
mRegion = (region==null ? MAX_REGION : region);
|
|
101 | 101 |
} |
102 | 102 |
|
103 | 103 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
113 | 113 |
super(EffectName.PINCH); |
114 | 114 |
mPinch = pinch; |
115 | 115 |
mCenter = center; |
116 |
mRegion = new Static4D(0,0,0, Float.MAX_VALUE);
|
|
116 |
mRegion = MAX_REGION;
|
|
117 | 117 |
} |
118 | 118 |
} |
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.