Project

General

Profile

« Previous | Next » 

Revision cbcf2374

Added by Leszek Koltunski 4 months ago

minor

View differences:

src/main/java/org/distorted/library/effect/PostprocessEffectBlurred.java
84 84

  
85 85
    if( weightsCache[offset]==0.0f )
86 86
      {
87
      float z, x= 0.0f, P= (float)NUM_GAUSSIAN / (radius>3 ? radius:3);
87
      float z, x= 0.0f, P= (float)NUM_GAUSSIAN / Math.max(radius,3);
88 88
      mWeights[0] = GAUSSIAN[0];
89 89
      float sum   = GAUSSIAN[0];
90 90
      int j;

Also available in: Unified diff