examples: update a few parameters
This commit is contained in:
parent
48f1bb474a
commit
69958aac56
2 changed files with 4 additions and 3 deletions
|
@ -23,7 +23,7 @@ void main(void) {
|
|||
vec2 p = (gl_FragCoord.xy - m) / s;
|
||||
|
||||
float repeat = 8.0;
|
||||
float time_mod = mod(time / 200, repeat);
|
||||
float time_mod = mod(time / 300, repeat);
|
||||
float w = 20 * pow(2, time_mod);
|
||||
|
||||
float f = time_mod / repeat;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue