public class VertexEffectShear extends VertexEffect
NUM_FLOAT_UNIFORMS, NUM_INT_UNIFORMS
Constructor and Description |
---|
VertexEffectShear(Data3D shear,
Data3D center)
Shear the Mesh.
|
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 VertexEffectShear(Data3D shear, Data3D center)
shear
- The 3-tuple of shear factors. The first controls level
of shearing in the X-axis, second - Y-axis and the third -
Z-axis. Each is the tangent of the shear angle, i.e 0 -
no shear, 1 - shear by 45 degrees (tan(45deg)=1) etc.center
- Center of shearing, i.e. the point which stays unmoved.