godot-demo-projects/2d/sprite_shaders/shaders/silouette.shader

9 lines
171 B
Plaintext
Raw Normal View History

shader_type canvas_item;
render_mode blend_mix;
2020-02-03 09:53:07 +01:00
uniform vec4 modulate: hint_color;
void fragment() {
COLOR = vec4(modulate.rgb, texture(TEXTURE, UV).a * modulate.a);
}