VoxelEngine/res/shaders/effects/grayscale.glsl
2025-04-05 00:41:58 +03:00

6 lines
171 B
GLSL

vec4 effect() {
vec3 color = texture(u_screen, v_uv).rgb;
float m = (color.r + color.g + color.b) / 3.0;
return vec4(mix(color, vec3(m), u_intensity), 1.0);
}