Revision 8d5840c0
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/deform/DeformRenderer.java | ||
---|---|---|
288 | 288 |
vDistort[i].set( vDistort[i-1].getX()*damp, vDistort[i-1].getY()*damp ); |
289 | 289 |
} |
290 | 290 |
vDistort[NUM_VECTORS-1].set(0,0); |
291 |
//stretchEffects.abortEffect(mMovingDistort); |
|
292 |
stretchEffects.apply( mReleasedDistort); |
|
291 |
stretchEffects.apply(mReleasedDistort); |
|
293 | 292 |
break; |
294 | 293 |
case DEFORM : for(int i=1; i<NUM_VECTORS-1; i++) |
295 | 294 |
{ |
296 | 295 |
vDeform[i].set( vDeform[i-1].getX()*damp, vDeform[i-1].getY()*damp ); |
297 | 296 |
} |
298 | 297 |
vDeform[NUM_VECTORS-1].set(0,0); |
299 |
//stretchEffects.abortEffect( mMovingDeform); |
|
300 |
stretchEffects.apply( mReleasedDeform); |
|
298 |
stretchEffects.apply(mReleasedDeform); |
|
301 | 299 |
break; |
302 | 300 |
case SHEAR : for(int i=1; i<NUM_VECTORS-1; i++) |
303 | 301 |
{ |
304 | 302 |
vShear[i].set( vShear[i-1].getX()*damp, vShear[i-1].getY()*damp ); |
305 | 303 |
} |
306 | 304 |
vShear[NUM_VECTORS-1].set(0,0); |
307 |
|
|
308 |
//stretchEffects.abortEffect(mMovingShear); |
|
309 | 305 |
stretchEffects.apply(mReleasedShear); |
310 | 306 |
break; |
311 | 307 |
} |
Also available in: Unified diff
Fixes for removing effects.