Project

General

Profile

« Previous | Next » 

Revision dd89c7f4

Added by Leszek Koltunski about 5 years ago

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.

View differences:

src/main/java/org/distorted/library/effect/VertexEffectWave.java
223 223
    super(EffectName.WAVE);
224 224
    mWave   = wave;
225 225
    mCenter = center;
226
    mRegion = (region==null ? new Static4D(0,0,0, Float.MAX_VALUE) : region);
226
    mRegion = (region==null ? MAX_REGION : region);
227 227
    }
228 228

  
229 229
///////////////////////////////////////////////////////////////////////////////////////////////////
......
238 238
    super(EffectName.WAVE);
239 239
    mWave   = wave;
240 240
    mCenter = center;
241
    mRegion = new Static4D(0,0,0, Float.MAX_VALUE);
241
    mRegion = MAX_REGION;
242 242
    }
243 243
  }

Also available in: Unified diff