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/examples/greyscale.gdshader

10 lines
157 B
Text

shader_type canvas_item;
//!load ./swamp.jpg
void fragment() {
float b = (COLOR.r + COLOR.g + COLOR.b) / 3.0;
COLOR.r = b;
COLOR.g = b;
COLOR.b = b;
}