godot-visual-effects/test2.gdshader

10 lines
280 B
Plaintext
Raw Permalink Normal View History

2023-12-13 05:44:18 +08:00
shader_type spatial;
uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_nearest;
void fragment() {
vec4 currentColor = textureLod(screen_texture, SCREEN_UV, 0.0);
ALBEDO = vec3(currentColor.r, currentColor.g * 10.0, currentColor.b);
ALPHA = 1.;
}