diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2017-11-12 15:41:03 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2017-11-12 15:41:03 +0100 |
commit | 76a70a787b20ef26f8f2b38005bc1f0e97a5fbb7 (patch) | |
tree | 2d55ae06acdaee91cd127bafae3bbc44b60d160a | |
parent | ce381dec2ac638e50c056083181fb1b4fe618572 (diff) | |
download | glslview-76a70a787b20ef26f8f2b38005bc1f0e97a5fbb7.tar glslview-76a70a787b20ef26f8f2b38005bc1f0e97a5fbb7.zip |
-rw-r--r-- | examples/checkers.frag | 2 | ||||
-rw-r--r-- | examples/polygon.frag | 2 | ||||
-rw-r--r-- | examples/snail.frag | 2 | ||||
-rw-r--r-- | examples/square-in-circle.frag | 2 | ||||
-rw-r--r-- | examples/square-in-square.frag | 2 | ||||
-rw-r--r-- | examples/square-ring.frag | 2 | ||||
-rw-r--r-- | examples/square-ring2.frag | 2 | ||||
-rw-r--r-- | examples/squares.frag | 2 | ||||
-rw-r--r-- | examples/supersnail.frag | 2 | ||||
-rw-r--r-- | examples/symmetry.frag | 14 | ||||
-rw-r--r-- | examples/torus.frag | 2 |
11 files changed, 17 insertions, 17 deletions
diff --git a/examples/checkers.frag b/examples/checkers.frag index 77de622..2e42704 100644 --- a/examples/checkers.frag +++ b/examples/checkers.frag @@ -1,4 +1,4 @@ -#version 330 +#version 130 out vec4 fragColor; diff --git a/examples/polygon.frag b/examples/polygon.frag index a018865..26b3b10 100644 --- a/examples/polygon.frag +++ b/examples/polygon.frag @@ -1,4 +1,4 @@ -#version 330 +#version 130 out vec4 fragColor; diff --git a/examples/snail.frag b/examples/snail.frag index 5513d34..079bd63 100644 --- a/examples/snail.frag +++ b/examples/snail.frag @@ -1,4 +1,4 @@ -#version 330 +#version 130 out vec4 fragColor; diff --git a/examples/square-in-circle.frag b/examples/square-in-circle.frag index 731eca6..4207bbb 100644 --- a/examples/square-in-circle.frag +++ b/examples/square-in-circle.frag @@ -1,4 +1,4 @@ -#version 330 +#version 130 out vec4 fragColor; diff --git a/examples/square-in-square.frag b/examples/square-in-square.frag index 07343d8..13ef58d 100644 --- a/examples/square-in-square.frag +++ b/examples/square-in-square.frag @@ -1,4 +1,4 @@ -#version 330 +#version 130 out vec4 fragColor; diff --git a/examples/square-ring.frag b/examples/square-ring.frag index 300d4ef..0779981 100644 --- a/examples/square-ring.frag +++ b/examples/square-ring.frag @@ -1,4 +1,4 @@ -#version 330 +#version 130 out vec4 fragColor; diff --git a/examples/square-ring2.frag b/examples/square-ring2.frag index 26310a7..19da887 100644 --- a/examples/square-ring2.frag +++ b/examples/square-ring2.frag @@ -1,4 +1,4 @@ -#version 330 +#version 130 out vec4 fragColor; diff --git a/examples/squares.frag b/examples/squares.frag index 574f220..353da2d 100644 --- a/examples/squares.frag +++ b/examples/squares.frag @@ -1,4 +1,4 @@ -#version 330 +#version 130 out vec4 fragColor; diff --git a/examples/supersnail.frag b/examples/supersnail.frag index dd0f77c..724b264 100644 --- a/examples/supersnail.frag +++ b/examples/supersnail.frag @@ -1,4 +1,4 @@ -#version 330 +#version 130 out vec4 fragColor; diff --git a/examples/symmetry.frag b/examples/symmetry.frag index 26f4651..363c18a 100644 --- a/examples/symmetry.frag +++ b/examples/symmetry.frag @@ -1,4 +1,4 @@ -#version 330 +#version 130 out vec4 fragColor; @@ -56,13 +56,13 @@ void main(void) { float k = param1; for (int i = 0; i < n; i++) { - mat3 t = scale(0.3 + 0.02 * param2) - * rot(-PI/2*(k*i/n + time/1500)) - * trans(0.5, 0.0) - * rot(2*PI*i/n) - * scale(1 / (1 + 0.03 * param2)); + mat3 t = scale(1 + 0.03 * param2) + * rot(-2*PI*i/n) + * trans(-0.5, 0.0) + * rot(PI/2*(k*i/n + time/1500)) + * scale(1 / (0.3 + 0.02 * param2)); - float c = square(p * inverse(t)); + float c = square(p * t); scene = abs(scene - c); } diff --git a/examples/torus.frag b/examples/torus.frag index 06f6987..bf99ecb 100644 --- a/examples/torus.frag +++ b/examples/torus.frag @@ -1,4 +1,4 @@ -#version 330 +#version 130 out vec4 fragColor; |