Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shader_type canvas_item;
- uniform vec4 flash_color : source_color;
- uniform float flash_value : hint_range(0.0, 1.0, 0.1) = 0;
- void fragment() {
- vec4 texture_color = texture(TEXTURE, UV);
- COLOR = mix(texture_color, flash_color, flash_value);
- COLOR.a = texture_color.a;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement