Files
code_of_conquest_dnd/client/assets/theme/shaders/vignette.gdshader
2026-07-10 20:34:52 -05:00

7 lines
173 B
Plaintext

shader_type canvas_item;
uniform float strength = 0.62;
void fragment() {
float d = distance(UV, vec2(0.5));
COLOR = vec4(0.0, 0.0, 0.0, clamp(d * strength, 0.0, 1.0));
}