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/VertexEffectDistort.java
171 171
    super(EffectName.DISTORT);
172 172
    mVector = vector;
173 173
    mCenter = center;
174
    mRegion = (region==null ? new Static4D(0,0,0, Float.MAX_VALUE) : region);
174
    mRegion = (region==null ? MAX_REGION : region);
175 175
    }
176 176

  
177 177
///////////////////////////////////////////////////////////////////////////////////////////////////
......
186 186
    super(EffectName.DISTORT);
187 187
    mVector = vector;
188 188
    mCenter = center;
189
    mRegion = new Static4D(0,0,0, Float.MAX_VALUE);
189
    mRegion = MAX_REGION;
190 190
    }
191 191
  }
192 192

  

Also available in: Unified diff