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