pandemonium_demo_projects/2d/screen_space_shaders/shaders/normalized.shader

7 lines
131 B
GLSL

shader_type canvas_item;
void fragment() {
vec3 c = textureLod(SCREEN_TEXTURE, SCREEN_UV, 0.0).rgb;
COLOR.rgb = normalize(c);
}