public class FragmentEffectAlpha extends FragmentEffect
NUM_FLOAT_UNIFORMS, NUM_INT_UNIFORMS| Constructor and Description |
|---|
FragmentEffectAlpha(Data1D alpha)
Makes the whole Object smoothly change its transparency level.
|
FragmentEffectAlpha(Data1D alpha,
Data3D center,
Data3D region,
boolean smooth)
Makes a certain sub-region of the Object smoothly change its transparency 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.
|
getNumEnabledaddQueue, enableEffects, getCenterDimension, getEffectDimension, getID, getName, getRegionDimension, getString, getType, isUnity, notifyWhenFinished, remQueuepublic FragmentEffectAlpha(Data1D alpha, Data3D center, Data3D region, boolean smooth)
alpha - level of transparency we want to have at any given moment: pixel.a *= alpha.
Valid range: <0,1>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 'alpha' will smoothly fade out towards the edges of the region.public FragmentEffectAlpha(Data1D alpha)
alpha - level of transparency we want to have at any given moment: pixel.a *= alpha.
Valid range: <0,1>