Revision c0e4d5cf
Added by Leszek Koltunski almost 3 years ago
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); |
Also available in: Unified diff
Dynamics: minor.