Revision 86b434a0
Added by Leszek Koltunski about 9 years ago
| 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; |
Also available in: Unified diff
Bugfix (sometimes, when t=0.5 exactly, it wouldn't recompute Noise in case of PATH mode)