8 lines
157 B
Plaintext
Executable File
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);
|
|
}
|