Revision 86b434a0
Added by Leszek Koltunski about 8 years ago
src/main/java/org/distorted/library/type/Dynamic1D.java | ||
---|---|---|
426 | 426 |
break; |
427 | 427 |
case MODE_PATH: segment = (int)(2*t*(numPoints-1)); |
428 | 428 |
|
429 |
if( t<=0.5f )
|
|
429 |
if( t<0.5f ) |
|
430 | 430 |
{ |
431 | 431 |
time = 2*t*(numPoints-1); |
432 | 432 |
vecCurr = segment; |
src/main/java/org/distorted/library/type/Dynamic2D.java | ||
---|---|---|
459 | 459 |
break; |
460 | 460 |
case MODE_PATH: segment = (int)(2*t*(numPoints-1)); |
461 | 461 |
|
462 |
if( t<=0.5f )
|
|
462 |
if( t<0.5f ) |
|
463 | 463 |
{ |
464 | 464 |
time = 2*t*(numPoints-1); |
465 | 465 |
vecCurr = segment; |
src/main/java/org/distorted/library/type/Dynamic3D.java | ||
---|---|---|
490 | 490 |
break; |
491 | 491 |
case MODE_PATH: segment = (int)(2*t*(numPoints-1)); |
492 | 492 |
|
493 |
if( t<=0.5f )
|
|
493 |
if( t<0.5f ) |
|
494 | 494 |
{ |
495 | 495 |
time = 2*t*(numPoints-1); |
496 | 496 |
vecCurr = segment; |
src/main/java/org/distorted/library/type/Dynamic4D.java | ||
---|---|---|
506 | 506 |
break; |
507 | 507 |
case MODE_PATH: segment = (int)(2*t*(numPoints-1)); |
508 | 508 |
|
509 |
if( t<=0.5f )
|
|
509 |
if( t<0.5f ) |
|
510 | 510 |
{ |
511 | 511 |
time = 2*t*(numPoints-1); |
512 | 512 |
vecCurr = segment; |
src/main/java/org/distorted/library/type/Dynamic5D.java | ||
---|---|---|
529 | 529 |
break; |
530 | 530 |
case MODE_PATH: segment = (int)(2*t*(numPoints-1)); |
531 | 531 |
|
532 |
if( t<=0.5f )
|
|
532 |
if( t<0.5f ) |
|
533 | 533 |
{ |
534 | 534 |
time = 2*t*(numPoints-1); |
535 | 535 |
vecCurr = segment; |
Also available in: Unified diff
Bugfix (sometimes, when t=0.5 exactly, it wouldn't recompute Noise in case of PATH mode)