9 lines
148 B
Plaintext
9 lines
148 B
Plaintext
shader_type canvas_item;
|
|
uniform float opacity : hint_range(0,1);
|
|
|
|
void fragment() {
|
|
vec4 c = texture(TEXTURE, UV);
|
|
c.a *= opacity;
|
|
COLOR = c;
|
|
}
|