Files
kurovadis/shaders/grayscale.gdshader
T
2025-06-22 23:22:32 -06:00

8 lines
157 B
Plaintext
Executable File

shader_type canvas_item;
void fragment() {
COLOR = texture(TEXTURE, UV);
float avg = (COLOR.r + COLOR.g + COLOR.b) / 3.0;
COLOR.rgb = vec3(avg);
}