Revision 65f622c1
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/effects3d/Effects3DEffect.java | ||
---|---|---|
189 | 189 |
float sinAnorm = (float)Math.sin(qa/2)/len; |
190 | 190 |
mSta4.set(sinAnorm*qx,sinAnorm*qy,sinAnorm*qz, cosA); |
191 | 191 |
break; |
192 |
case MOVE : float sw = mAct.get().getScreenWidth()/50.0f; |
|
193 |
float sh = mAct.get().getScreenWidth()/50.0f; |
|
192 |
case MOVE : float scr= mAct.get().getScreenWidth(); |
|
193 |
float sw = scr/20000.0f; |
|
194 |
float sh = scr/20000.0f; |
|
194 | 195 |
float xm = (mInter[0]-50)*sw; |
195 | 196 |
float ym = (mInter[1]-50)*sh; |
196 | 197 |
float zm = (mInter[2]-50)*(sw+sh)/2; |
Also available in: Unified diff
Progress with Effects3D app - merge Matrix effects