You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
317 B
13 lines
317 B
4 months ago
|
uniform vec2 u_resolution;
|
||
|
uniform vec2 u_mouse;
|
||
|
uniform float u_duration;
|
||
|
uniform float u_time;
|
||
|
uniform float u_time_end;
|
||
|
|
||
|
void main() {
|
||
|
float tick = (u_time_end - u_time) / u_duration;
|
||
|
float blink = smoothstep(1.0, 0.5, tick);
|
||
|
vec4 color = vec4(blink, blink, blink, 1.0);
|
||
|
gl_FragColor = gl_Color * color;
|
||
|
}
|