Revision 073c140a
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/examples/generic/GenericEffect.java | ||
---|---|---|
46 | 46 |
import org.distorted.library.effect.VertexEffectQuaternion; |
47 | 47 |
import org.distorted.library.effect.VertexEffectRotate; |
48 | 48 |
import org.distorted.library.effect.VertexEffectScale; |
49 |
import org.distorted.library.effect.VertexEffectShear; |
|
49 | 50 |
import org.distorted.library.effect.VertexEffectSink; |
50 | 51 |
import org.distorted.library.effect.VertexEffectSwirl; |
51 | 52 |
import org.distorted.library.effect.VertexEffectWave; |
... | ... | |
127 | 128 |
case VERTEX_QUATERNION: effect = new VertexEffectQuaternion (mDyn4, mCenterDyn) ; break; |
128 | 129 |
case VERTEX_ROTATE : effect = new VertexEffectRotate (mDyn1, mDyn3, mCenterDyn) ; break; |
129 | 130 |
case VERTEX_SCALE : effect = new VertexEffectScale (mDyn3) ; break; |
131 |
case VERTEX_SHEAR : effect = new VertexEffectShear (mDyn3, mCenterDyn) ; break; |
|
130 | 132 |
|
131 | 133 |
case ALPHA : effect = new FragmentEffectAlpha (mDyn1, mCenterDyn, mRegion3Dyn, false); break; |
132 | 134 |
case SMOOTH_ALPHA : effect = new FragmentEffectAlpha (mDyn1, mCenterDyn, mRegion3Dyn, true ); break; |
... | ... | |
193 | 195 |
float zs = (mInter[2]>50 ? 0.04f : 0.013f)*(mInter[2]-50) + 1; |
194 | 196 |
mSta3.set(xs,ys,zs); |
195 | 197 |
break; |
198 |
case VERTEX_SHEAR : |
|
196 | 199 |
case SHEAR : float xsh = (mInter[0]-50)/25.0f; |
197 | 200 |
float ysh = (mInter[1]-50)/25.0f; |
198 | 201 |
float zsh = (mInter[2]-50)/25.0f; |
Also available in: Unified diff
new VertexEffectShear