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/VertexEffectSwirl.java
100 100
    super(EffectName.SWIRL);
101 101
    mSwirl  = swirl;
102 102
    mCenter = center;
103
    mRegion = (region==null ? new Static4D(0,0,0, Float.MAX_VALUE) : region);
103
    mRegion = (region==null ? MAX_REGION : region);
104 104
    }
105 105

  
106 106
///////////////////////////////////////////////////////////////////////////////////////////////////
......
115 115
    super(EffectName.SWIRL);
116 116
    mSwirl  = swirl;
117 117
    mCenter = center;
118
    mRegion = new Static4D(0,0,0, Float.MAX_VALUE);
118
    mRegion = MAX_REGION;
119 119
    }
120 120
  }
121 121

  

Also available in: Unified diff