This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float getPath(float progress) { | |
float scale = 1.5; | |
float p = (progress + 42.) * (1. / scale); | |
// float sin1 = sin(p * 0.1) * 5.; | |
// float sin2 = sin(2.2 * p * 0.1 + 5.52) * 2.5; | |
// float sin3 = sin(2.9 * p * 0.2 + 0.93) * 1.2; | |
// float sin4 = sin(4.6 * p * 0.2 + 8.94) * 0.5; | |
float sin1 = sin(p * 0.1) * 5.; | |
float sin2 = sin(p * 0.22 + 5.52) * 2.5; |