public class FragmentEffectChroma extends FragmentEffect
NUM_FLOAT_UNIFORMS, NUM_INT_UNIFORMS
Constructor and Description |
---|
FragmentEffectChroma(Data1D blend,
Data3D color)
Makes the whole Object smoothly change all three of its RGB components.
|
FragmentEffectChroma(Data1D blend,
Data3D color,
Data3D center,
Data3D region,
boolean smooth)
Makes a certain sub-region of the Object smoothly change all three of its RGB components.
|
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 FragmentEffectChroma(Data1D blend, Data3D color, Data3D center, Data3D region, boolean smooth)
blend
- level of blend a given pixel will be mixed with the next parameter 'color':
pixel = (1-level)*pixel + level*color.
Valid range: <0,1>color
- Color to mix. (1,0,0) is RED.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 'blend' will smoothly fade out towards the edges of the region.public FragmentEffectChroma(Data1D blend, Data3D color)
blend
- level of blend a given pixel will be mixed with the next parameter 'color':
pixel = (1-level)*pixel + level*color.
Valid range: <0,1>color
- Color to mix. (1,0,0) is RED.