Revision 60da87db
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/examples/generic/GenericEffect.java | ||
---|---|---|
45 | 45 |
import org.distorted.library.effect.VertexEffectPinch; |
46 | 46 |
import org.distorted.library.effect.VertexEffectQuaternion; |
47 | 47 |
import org.distorted.library.effect.VertexEffectRotate; |
48 |
import org.distorted.library.effect.VertexEffectScale; |
|
48 | 49 |
import org.distorted.library.effect.VertexEffectSink; |
49 | 50 |
import org.distorted.library.effect.VertexEffectSwirl; |
50 | 51 |
import org.distorted.library.effect.VertexEffectWave; |
... | ... | |
125 | 126 |
case VERTEX_MOVE : effect = new VertexEffectMove (mDyn3) ; break; |
126 | 127 |
case VERTEX_QUATERNION: effect = new VertexEffectQuaternion (mDyn4, mCenterDyn) ; break; |
127 | 128 |
case VERTEX_ROTATE : effect = new VertexEffectRotate (mDyn1, mDyn3, mCenterDyn) ; break; |
129 |
case VERTEX_SCALE : effect = new VertexEffectScale (mDyn3) ; break; |
|
128 | 130 |
|
129 | 131 |
case ALPHA : effect = new FragmentEffectAlpha (mDyn1, mCenterDyn, mRegion3Dyn, false); break; |
130 | 132 |
case SMOOTH_ALPHA : effect = new FragmentEffectAlpha (mDyn1, mCenterDyn, mRegion3Dyn, true ); break; |
... | ... | |
185 | 187 |
float zm = (mInter[2]-50)*(sw+sh)/2; |
186 | 188 |
mSta3.set(xm,ym,zm); |
187 | 189 |
break; |
190 |
case VERTEX_SCALE : |
|
188 | 191 |
case SCALE : float xs = (mInter[0]>50 ? 0.04f : 0.013f)*(mInter[0]-50) + 1; |
189 | 192 |
float ys = (mInter[1]>50 ? 0.04f : 0.013f)*(mInter[1]-50) + 1; |
190 | 193 |
float zs = (mInter[2]>50 ? 0.04f : 0.013f)*(mInter[2]-50) + 1; |
Also available in: Unified diff
new VertexEffectScale