Initial commit
This commit is contained in:
10
addons/player_controller/Shaders/Vignette.gdshader
Normal file
10
addons/player_controller/Shaders/Vignette.gdshader
Normal file
@ -0,0 +1,10 @@
|
||||
shader_type canvas_item;
|
||||
|
||||
uniform vec4 color : source_color;
|
||||
uniform float multiplier = 0.2;
|
||||
uniform float softness = 3.0;
|
||||
|
||||
void fragment() {
|
||||
float distance_to_center = distance(UV, vec2(0.5));
|
||||
COLOR = vec4(color.rgb, smoothstep(multiplier, softness, distance_to_center));
|
||||
}
|
Reference in New Issue
Block a user