Project

General

Profile

« Previous | Next » 

Revision 0ef8fafc

Added by Leszek Koltunski about 7 years ago

1) Bugfix for an issue introduced with previous commit
2) scale up the BLUR effect radius with MIPMAP levels.

View differences:

src/main/java/org/distorted/library/DistortedEffectsPostprocess.java
87 87

  
88 88
  int getQuality()
89 89
    {
90
    return mP.mQuality;
90
    return mP.mQualityLevel;
91 91
    }
92 92

  
93 93
///////////////////////////////////////////////////////////////////////////////////////////////////
......
294 294
 */
295 295
  public void setQuality(EffectQuality quality)
296 296
    {
297
    mP.mQuality = quality.level;
297
    int level = quality.level;
298

  
299
    mP.mQualityLevel = level;
300
    mP.mQualityScale = 1.0f;
301

  
302
    for(int i=0; i<level; i++) mP.mQualityScale*=0.5f;
298 303
    }
299 304

  
300 305
///////////////////////////////////////////////////////////////////////////////////////////////////   

Also available in: Unified diff