You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
350 B
Plaintext
15 lines
350 B
Plaintext
shader_type spatial;
|
|
render_mode unshaded;
|
|
|
|
uniform sampler2D tex : source_color;
|
|
uniform float alpha;
|
|
|
|
void fragment() {
|
|
vec4 col = texture(tex, UV);
|
|
if(col.a<0.5){discard;}
|
|
//col.rgb = mix(vec3(0.0), col.rgb, alpha * 0.5);
|
|
col.rgb = mix(vec3(dot(vec3(1.0), col.rgb) * 0.33333), col.rgb, alpha);
|
|
ALBEDO = col.rgb;
|
|
ALPHA = alpha * 0.5;
|
|
}
|