public class FragmentEffectContrast extends FragmentEffect
NUM_FLOAT_UNIFORMS, NUM_INT_UNIFORMS
Constructor and Description |
---|
FragmentEffectContrast(Data1D contrast)
Makes the whole Object smoothly change its contrast level.
|
FragmentEffectContrast(Data1D contrast,
Data3D center,
Data3D region,
boolean smooth)
Makes a certain sub-region of the Object smoothly change its contrast 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 FragmentEffectContrast(Data1D contrast, Data3D center, Data3D region, boolean smooth)
contrast
- level of contrast 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 'contrast' will smoothly fade out towards the edges of the region.public FragmentEffectContrast(Data1D contrast)
contrast
- level of contrast we want to have at any given moment. Valid range: <0,infinity)