summaryrefslogtreecommitdiffstats
path: root/examples/symmetry.frag
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2017-11-12 15:41:03 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2017-11-12 15:41:03 +0100
commit76a70a787b20ef26f8f2b38005bc1f0e97a5fbb7 (patch)
tree2d55ae06acdaee91cd127bafae3bbc44b60d160a /examples/symmetry.frag
parentce381dec2ac638e50c056083181fb1b4fe618572 (diff)
downloadglslview-76a70a787b20ef26f8f2b38005bc1f0e97a5fbb7.tar
glslview-76a70a787b20ef26f8f2b38005bc1f0e97a5fbb7.zip
examples: switch to GLSL 1.30 to support Intel graphicsHEADmaster
Diffstat (limited to 'examples/symmetry.frag')
-rw-r--r--examples/symmetry.frag14
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);
}