swwmgz_m/shaders/glsl/KeyBlink.fp
Marisa Kirisame 3500f72db0 Add "exclusive use to pickup" option.
Make "pickup through melee" optional (disabled by default).
Increased leniency of use to pickup (nice for items with small hitboxes).
2021-05-29 23:26:12 +02:00

10 lines
274 B
GLSL

// emulate keycard blink cycle on hud model
void SetupMaterial( inout Material mat )
{
float mixfct = floor(mod(timer*35.,20.)/10.);
vec2 uv = vTexCoord.st*vec2(.5,1.);
uv.x += mixfct*.5;
mat.Base = getTexel(uv);
mat.Bright = vec4(mix(vec3(1.),vec3(0.),mixfct),1.);
}