Skip to content

Instantly share code, notes, and snippets.

View vlucendo's full-sized avatar

Vicente Lucendo vlucendo

View GitHub Profile
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;