summaryrefslogtreecommitdiffstats
path: root/examples/symmetry.frag
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-02-02 20:22:41 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-02-02 20:22:41 +0100
commit69958aac5609d86db5d3f140f514c96eb6023600 (patch)
tree24f0ce295306189de151f1dae62b22e0c1ed5496 /examples/symmetry.frag
parent48f1bb474a4a11697af9c33cb69005da49fbf394 (diff)
downloadglslview-69958aac5609d86db5d3f140f514c96eb6023600.tar
glslview-69958aac5609d86db5d3f140f514c96eb6023600.zip
examples: update a few parameters
Diffstat (limited to 'examples/symmetry.frag')
-rw-r--r--examples/symmetry.frag5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/symmetry.frag b/examples/symmetry.frag
index 7a3fb18..faebd75 100644
--- a/examples/symmetry.frag
+++ b/examples/symmetry.frag
@@ -31,9 +31,10 @@ void main(void) {
float scene = 0;
- int n = 24;
+ int n = 32;
+ float k = 0;
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, PI/2*(24.0*i/n - time/800), p);
+ float c = square(vec2(0.5, 0) * rot(PI/2*(4.0*i/n)) * vec2(1, 1), 0.3, -PI/2*(k*i/n + time/1500), p);
scene = abs(scene - c);
}