Revision 8426bd6a
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/DistortedEffectsPostprocess.java | ||
---|---|---|
83 | 83 |
mP = null; |
84 | 84 |
} |
85 | 85 |
|
86 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
87 |
|
|
88 |
int getQuality() |
|
89 |
{ |
|
90 |
return mP.mQuality; |
|
91 |
} |
|
92 |
|
|
86 | 93 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
87 | 94 |
|
88 | 95 |
static void onDestroy() |
... | ... | |
278 | 285 |
return EffectQueue.setMax(EffectTypes.POSTPROCESS.ordinal(),max); |
279 | 286 |
} |
280 | 287 |
|
288 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
289 |
/** |
|
290 |
* The higher the quality, the better the effect will look like and the slower it will be. |
|
291 |
* <p> |
|
292 |
* This works by rendering into smaller and smaller intermediate buffers. Each step renders into a |
|
293 |
* buffer that's half the size of the previous one. |
|
294 |
*/ |
|
295 |
public void setQuality(EffectQuality quality) |
|
296 |
{ |
|
297 |
mP.mQuality = quality.level; |
|
298 |
} |
|
299 |
|
|
281 | 300 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
282 | 301 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
283 | 302 |
// Individual effect functions. |
Also available in: Unified diff
Mipmap levels!