reduce shader time rollover to 240 seconds and alter shaders to accomodate (closes #198)

This commit is contained in:
Haze Weathers 2023-10-14 17:06:41 -04:00
parent bd12aa68c1
commit 9c507a9b4f
8 changed files with 17 additions and 11 deletions

View file

@ -6,5 +6,5 @@ uniform sampler2D gradient;
void fragment() {
COLOR = texture(TEXTURE, UV);
COLOR *= texture(gradient, vec2(TIME * cycle_speed, 0.0));
COLOR *= texture(gradient, vec2(fract(TIME) * floor(cycle_speed), 0.0));
}