Project

General

Profile

« Previous | Next » 

Revision 86b434a0

Added by Leszek Koltunski over 7 years ago

Bugfix (sometimes, when t=0.5 exactly, it wouldn't recompute Noise in case of PATH mode)

View differences:

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;

Also available in: Unified diff