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/VertexEffectSink.java
84 84
    super(EffectName.SINK);
85 85
    mSink   = sink;
86 86
    mCenter = center;
87
    mRegion = (region==null ? new Static4D(0,0,0, Float.MAX_VALUE) : region);
87
    mRegion = (region==null ? MAX_REGION : region);
88 88
    }
89 89

  
90 90
///////////////////////////////////////////////////////////////////////////////////////////////////
......
100 100
    super(EffectName.SINK);
101 101
    mSink   = sink;
102 102
    mCenter = center;
103
    mRegion = new Static4D(0,0,0, Float.MAX_VALUE);
103
    mRegion = MAX_REGION;
104 104
    }
105 105
  }

Also available in: Unified diff