This repository has been archived on 2025-10-11. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Fragmented/src/presets/shaders/greyscale.gdshader

11 lines
174 B
Text
Raw Normal View History

2024-06-04 18:31:04 +02:00
shader_type canvas_item;
void fragment() {
// TODO: not only r
vec4 tex = texture(TEXTURE , UV);
COLOR.r = tex.r;
COLOR.g = tex.r;
COLOR.b = tex.r;
COLOR.a = tex.a;
}