Skip to content
Snippets Groups Projects
Commit 1a779714 authored by DarkGod's avatar DarkGod
Browse files

fix

parent 0318b3ec
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ void main(void) ...@@ -67,7 +67,7 @@ void main(void)
intersections[spiralIndex].worldPoint.xy = pos; intersections[spiralIndex].worldPoint.xy = pos;
intersections[spiralIndex].worldPoint.z = sin(spiralPhase); intersections[spiralIndex].worldPoint.z = sin(spiralPhase);
intersections[spiralIndex].localPoint.y = clamp(0.5 + (length(pos) - baseRadius + spiralRadius * cos(spiralPhase) * (intensityAdjust * 0.2 + 1.0)) / spiralWidth, 0.0, 1.0); intersections[spiralIndex].localPoint.y = clamp(0.5 + (length(pos) - baseRadius + spiralRadius * cos(spiralPhase) * (intensityAdjust * 0.2 + 1.0)) / spiralWidth, 0.0, 1.0);
intersections[spiralIndex].localPoint.x = (ang + float(spiralIndex) * 2.0 * pi / spiralsCount - tick * scrollingSpeed) / (pi * 2.0); intersections[spiralIndex].localPoint.x = (ang + float(spiralIndex) * 2.0 * pi / chargesCount - tick * scrollingSpeed) / (pi * 2.0);
} }
int i, j; int i, j;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment