public class VertexEffectDistort extends VertexEffect
NUM_FLOAT_UNIFORMS, NUM_INT_UNIFORMS
Constructor and Description |
---|
VertexEffectDistort(Data3D vector,
Data3D center)
Distort the whole Mesh by a (possibly changing in time) vector of force.
|
VertexEffectDistort(Data3D vector,
Data3D center,
Data4D region)
Distort a (possibly changing in time) part of the Mesh by a (possibly changing in time) vector of force.
|
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, setMeshAssociation
addQueue, enableEffects, getCenterDimension, getEffectDimension, getID, getName, getRegionDimension, getString, getType, isUnity, notifyWhenFinished, remQueue
public VertexEffectDistort(Data3D vector, Data3D center, Data4D region)
vector
- vector of force the Center of the Effect is currently being dragged with.center
- 3-dimensional Data that, at any given time, returns the Center of the Effect.region
- Region that masks the Effect.public VertexEffectDistort(Data3D vector, Data3D center)
vector
- vector of force the Center of the Effect is currently being dragged with.center
- 3-dimensional Data that, at any given time, returns the Center of the Effect.