public class FragmentEffectSaturation extends FragmentEffect
NUM_FLOAT_UNIFORMS, NUM_INT_UNIFORMS
Constructor and Description |
---|
FragmentEffectSaturation(Data1D saturation)
Makes the whole Object smoothly change its saturation level.
|
FragmentEffectSaturation(Data1D saturation,
Data3D center,
Data3D region,
boolean smooth)
Makes a certain sub-region of the Object smoothly change its saturation level.
|
Modifier and Type | Method and Description |
---|---|
static void |
enable()
Have to call this before the shaders get compiled (i.e before DistortedLibrary.onCreate()) for the Effect to work.
|
getNumEnabled
addQueue, enableEffects, getCenterDimension, getEffectDimension, getID, getName, getRegionDimension, getString, getType, isUnity, notifyWhenFinished, remQueue
public FragmentEffectSaturation(Data1D saturation, Data3D center, Data3D region, boolean smooth)
saturation
- level of saturation we want to have at any given moment. Valid range: <0,infinity)center
- center of the Effect (point in 3D).region
- Region this Effect is limited to (3 radii defining an ellipsoid).smooth
- If true, the level of 'saturation' will smoothly fade out towards the edges of the region.public FragmentEffectSaturation(Data1D saturation)
saturation
- level of saturation we want to have at any given moment. Valid range: <0,infinity)