diff options
Diffstat (limited to 'examples/symmetry.frag')
-rw-r--r-- | examples/symmetry.frag | 14 |
1 files changed, 7 insertions, 7 deletions
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); } |