From 76a70a787b20ef26f8f2b38005bc1f0e97a5fbb7 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 12 Nov 2017 15:41:03 +0100 Subject: examples: switch to GLSL 1.30 to support Intel graphics --- examples/checkers.frag | 2 +- examples/polygon.frag | 2 +- examples/snail.frag | 2 +- examples/square-in-circle.frag | 2 +- examples/square-in-square.frag | 2 +- examples/square-ring.frag | 2 +- examples/square-ring2.frag | 2 +- examples/squares.frag | 2 +- examples/supersnail.frag | 2 +- examples/symmetry.frag | 14 +++++++------- examples/torus.frag | 2 +- 11 files changed, 17 insertions(+), 17 deletions(-) (limited to 'examples') 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; -- cgit v1.2.3