Revision c0e4d5cf
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/library/type/Dynamic1D.java | ||
---|---|---|
390 | 390 |
case 2: curr = vv.elementAt(0); |
391 | 391 |
next = vv.elementAt(1); |
392 | 392 |
|
393 |
int segment2= (int)(2*time);
|
|
393 |
int segment= (int)(2*time); |
|
394 | 394 |
|
395 | 395 |
if( mMode==MODE_LOOP || mMode==MODE_PATH ) time = (time>0.5f ? 2-2*time : 2*time); |
396 | 396 |
|
397 | 397 |
if( vn!=null ) |
398 | 398 |
{ |
399 |
if( segment2 != mSegment )
|
|
399 |
if( segment != mSegment ) |
|
400 | 400 |
{ |
401 | 401 |
if(mMode!=MODE_JUMP || mSegment==1) vn.elementAt(0).computeNoise(); |
402 |
mSegment = segment2;
|
|
402 |
mSegment = segment; |
|
403 | 403 |
} |
404 | 404 |
|
405 | 405 |
time = noise(time,0); |
src/main/java/org/distorted/library/type/Dynamic2D.java | ||
---|---|---|
413 | 413 |
case 2: curr = vv.elementAt(0); |
414 | 414 |
next = vv.elementAt(1); |
415 | 415 |
|
416 |
int segment2= (int)(2*time);
|
|
416 |
int segment= (int)(2*time); |
|
417 | 417 |
|
418 | 418 |
if( mMode==MODE_LOOP || mMode==MODE_PATH ) time = (time>0.5f ? 2-2*time : 2*time); |
419 | 419 |
|
420 | 420 |
if( vn!=null ) |
421 | 421 |
{ |
422 |
if( segment2 != mSegment )
|
|
422 |
if( segment != mSegment ) |
|
423 | 423 |
{ |
424 | 424 |
if(mMode!=MODE_JUMP || mSegment==1) vn.elementAt(0).computeNoise(); |
425 |
mSegment = segment2;
|
|
425 |
mSegment = segment; |
|
426 | 426 |
} |
427 | 427 |
|
428 | 428 |
time = noise(time,0); |
src/main/java/org/distorted/library/type/Dynamic3D.java | ||
---|---|---|
438 | 438 |
case 2: curr = vv.elementAt(0); |
439 | 439 |
next = vv.elementAt(1); |
440 | 440 |
|
441 |
int segment2= (int)(2*time);
|
|
441 |
int segment= (int)(2*time); |
|
442 | 442 |
|
443 | 443 |
if( mMode==MODE_LOOP || mMode==MODE_PATH ) time = (time>0.5f ? 2-2*time : 2*time); |
444 | 444 |
|
445 | 445 |
if( vn!=null ) |
446 | 446 |
{ |
447 |
if( segment2 != mSegment )
|
|
447 |
if( segment != mSegment ) |
|
448 | 448 |
{ |
449 | 449 |
if(mMode!=MODE_JUMP || mSegment==1) vn.elementAt(0).computeNoise(); |
450 |
mSegment = segment2;
|
|
450 |
mSegment = segment; |
|
451 | 451 |
} |
452 | 452 |
|
453 | 453 |
time = noise(time,0); |
src/main/java/org/distorted/library/type/Dynamic4D.java | ||
---|---|---|
459 | 459 |
case 2: curr = vv.elementAt(0); |
460 | 460 |
next = vv.elementAt(1); |
461 | 461 |
|
462 |
int segment2= (int)(2*time);
|
|
462 |
int segment= (int)(2*time); |
|
463 | 463 |
|
464 | 464 |
if( mMode==MODE_LOOP || mMode==MODE_PATH ) time = (time>0.5f ? 2-2*time : 2*time); |
465 | 465 |
|
466 | 466 |
if( vn!=null ) |
467 | 467 |
{ |
468 |
if( segment2 != mSegment )
|
|
468 |
if( segment != mSegment ) |
|
469 | 469 |
{ |
470 | 470 |
if(mMode!=MODE_JUMP || mSegment==1) vn.elementAt(0).computeNoise(); |
471 |
mSegment = segment2;
|
|
471 |
mSegment = segment; |
|
472 | 472 |
} |
473 | 473 |
|
474 | 474 |
time = noise(time,0); |
src/main/java/org/distorted/library/type/Dynamic5D.java | ||
---|---|---|
480 | 480 |
case 2: curr = vv.elementAt(0); |
481 | 481 |
next = vv.elementAt(1); |
482 | 482 |
|
483 |
int segment2= (int)(2*time);
|
|
483 |
int segment= (int)(2*time); |
|
484 | 484 |
|
485 | 485 |
if( mMode==MODE_LOOP || mMode==MODE_PATH ) time = (time>0.5f ? 2-2*time : 2*time); |
486 | 486 |
|
487 | 487 |
if( vn!=null ) |
488 | 488 |
{ |
489 |
if( segment2 != mSegment )
|
|
489 |
if( segment != mSegment ) |
|
490 | 490 |
{ |
491 | 491 |
if(mMode!=MODE_JUMP || mSegment==1) vn.elementAt(0).computeNoise(); |
492 |
mSegment = segment2;
|
|
492 |
mSegment = segment; |
|
493 | 493 |
} |
494 | 494 |
|
495 | 495 |
time = noise(time,0); |
Also available in: Unified diff
Dynamics: minor.