summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-02-03 14:19:09 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-02-03 14:19:09 +0100
commitd5375d5308b3483f5dc8da89943d5a98f67818d5 (patch)
tree1bda267b42eeb530ca5916f8ed9348b5b41be6d2 /examples
parent22e600bde83f04fd4f140bcf2c7f7b90d5920e55 (diff)
downloadglslview-d5375d5308b3483f5dc8da89943d5a98f67818d5.tar
glslview-d5375d5308b3483f5dc8da89943d5a98f67818d5.zip
Get rid of extra_load(), rename parameters
Diffstat (limited to 'examples')
-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);
}