Project

General

Profile

« Previous | Next » 

Revision 5c84d9c2

Added by Leszek Koltunski over 2 years ago

Set possibility for the Postprocessing effects to eclipse the whole object or only work at the edges.

View differences:

src/main/java/org/distorted/library/effect/PostprocessEffect.java
98 98

  
99 99
  private final ArrayList<Job> mJobs = new ArrayList<>();
100 100
  private int mQualityLevel;
101
  private boolean mUseHaloDepth;
101 102

  
102 103
  float mQualityScale;
103 104

  
......
174 175
    return mQualityLevel;
175 176
    }
176 177

  
178
///////////////////////////////////////////////////////////////////////////////////////////////////
179
  /**
180
   * Only for use by the library itself.
181
   *
182
   * @y.exclude
183
   */
184
  public boolean getHaloDepth()
185
    {
186
    return mUseHaloDepth;
187
    }
188

  
177 189
///////////////////////////////////////////////////////////////////////////////////////////////////
178 190
/**
179 191
 * Only for use by the library itself.
......
289 301
    mJobs.add(new Job(MIPMAP,quality.getLevel()));
290 302
    InternalMaster.newSlave(this);
291 303
    }
304

  
305
///////////////////////////////////////////////////////////////////////////////////////////////////
306
/**
307
 * When preprocessing - so drawning the 'halo' - do we also want to write the depth buffer?
308
 * If yes, the halo would cover the whole object; if no, it would be just around it (and possibly
309
 * could be covered by other similarly postprocessed objects nearby)
310
 *
311
 * @param depth should the halo around the object cover it or not?
312
 */
313
  public void setHaloDepth(boolean depth)
314
    {
315
    mUseHaloDepth = depth;
316
    }
292 317
  }

Also available in: Unified diff