forked from team-sg/hero-mark-2
reduce shader time rollover to 240 seconds and alter shaders to accomodate (closes #198)
This commit is contained in:
parent
bd12aa68c1
commit
9c507a9b4f
8 changed files with 17 additions and 11 deletions
|
@ -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));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue