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/VertexEffectDeform.java
158 158
    super(EffectName.DEFORM);
159 159
    mVector = vector;
160 160
    mCenter = center;
161
    mRegion = (region==null ? new Static4D(0,0,0, Float.MAX_VALUE) : region);
161
    mRegion = (region==null ? MAX_REGION : region);
162 162
    }
163 163

  
164 164
///////////////////////////////////////////////////////////////////////////////////////////////////
......
174 174
    super(EffectName.DEFORM);
175 175
    mVector = vector;
176 176
    mCenter = center;
177
    mRegion = new Static4D(0,0,0, Float.MAX_VALUE);
177
    mRegion = MAX_REGION;
178 178
    }
179 179
  }

Also available in: Unified diff