summaryrefslogtreecommitdiff
path: root/UI/button.gdshader
blob: 0c89fa5304e5201b99b31e6eb58b0d2b674fdb6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
shader_type canvas_item;

uniform float adjust = 0.0;

void fragment() {
	// Called for every pixel the material is visible on.
	vec4 tex = texture(TEXTURE, UV);
	
	if (adjust < 0.0) {
		COLOR.rgb = tex.rgb - vec3(0.2);
	} else if (adjust > 0.0) {
		COLOR.rgb = tex.rgb + vec3(0.2);
	}
}