Randoloot/resources/ui/ship_silhouette.gdshader
2026-10-10 23:40:48 +02:00

8 lines
197 B
Plaintext

shader_type canvas_item;
void fragment() {
vec4 pixel = texture(TEXTURE, UV);
float gray = dot(pixel.rgb, vec3(0.299, 0.587, 0.114));
COLOR *= vec4(mix(pixel.rgb, vec3(gray), 0.8), pixel.a);
}