summaryrefslogtreecommitdiffstats
path: root/examples/symmetry.frag
diff options
context:
space:
mode:
Diffstat (limited to 'examples/symmetry.frag')
-rw-r--r--examples/symmetry.frag12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/symmetry.frag b/examples/symmetry.frag
index 0e237cc..90bd71a 100644
--- a/examples/symmetry.frag
+++ b/examples/symmetry.frag
@@ -5,9 +5,9 @@ out vec4 fragColor;
uniform vec2 res;
uniform float time;
-uniform int param_k;
-uniform int param_l;
-uniform int param_m;
+uniform int param0;
+uniform int param1;
+uniform int param2;
const float sharpness = 300;
@@ -35,10 +35,10 @@ void main(void) {
float scene = 0;
- int n = param_k + 32;
- float k = param_l;
+ int n = param0 + 32;
+ float k = param1;
for (int i = 0; i < n; i++) {
- float c = square(vec2(0.5, 0) * rot(PI/2*(4.0*i/n)) * vec2(1, 1), 0.3 + 0.02 * param_m, -PI/2*(k*i/n + time/1500), p * (1 + 0.03*param_m));
+ float c = square(vec2(0.5, 0) * rot(PI/2*(4.0*i/n)) * vec2(1, 1), 0.3 + 0.02 * param2, -PI/2*(k*i/n + time/1500), p * (1 + 0.03*param2));
scene = abs(scene - c);
}