SupaLidlGame/Shaders/Flash.gdshader

14 lines
372 B
Plaintext
Raw Normal View History

2022-11-25 09:11:46 -08:00
shader_type canvas_item;
uniform vec4 color = vec4(1.0);
uniform float intensity : hint_range(0.0, 1.0) = 0.0;
2023-07-23 23:39:20 -07:00
uniform float alpha_modulate : hint_range(0.0, 1.0) = 1.0;
2022-11-25 09:11:46 -08:00
void fragment() {
vec4 tex = texture(TEXTURE, UV);
tex.rgb = mix(tex.rgb, color.rgb, intensity);
2023-08-16 21:03:54 -07:00
COLOR.r = tex.r;
COLOR.g = tex.g;
COLOR.b = tex.b;
2023-07-23 23:39:20 -07:00
COLOR.a *= alpha_modulate;
2022-11-25 09:11:46 -08:00
}