Revision 4c1dd6e9
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/EffectNames.java | ||
---|---|---|
236 | 236 |
* <p> |
237 | 237 |
* Unity: contrastLevel = 1 |
238 | 238 |
*/ |
239 |
SMOOTH_CONTRAST ( EffectTypes.FRAGMENT, new float[] {1.0f} , 1, true, false );
|
|
239 |
SMOOTH_CONTRAST ( EffectTypes.FRAGMENT, new float[] {1.0f} , 1, true, false ),
|
|
240 | 240 |
// add new Fragment effects here... |
241 | 241 |
|
242 |
///////////////////////////////////////////////////////////////////////////////// |
|
243 |
// POSTPROCESSING EFFECTS. |
|
244 |
// Always 3 Uniforms: 1 per-effect interpolated value + 2 dimensional center. |
|
245 |
/** |
|
246 |
* Blur the area around the center. |
|
247 |
* <p> |
|
248 |
* Uniforms: (radius,centerX,centerY) |
|
249 |
* <p> |
|
250 |
* Unity: radius==0 |
|
251 |
*/ |
|
252 |
BLUR ( EffectTypes.POSTPROCESS,new float[] {0.0f} , 1, false, true ); |
|
253 |
|
|
242 | 254 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
243 | 255 |
|
244 | 256 |
private static final int MAXDIM = 4; // maximum supported dimension of an effect |
Also available in: Unified diff
Beginnings of support for postprocessing Effects.