Altered input wheel colours, and made the custom material for the wheels accept the colours of the ColorRect they're applied to.

This commit is contained in:
Jamie Greunbaum
2024-06-19 16:57:27 -04:00
parent fba901b368
commit 15f7d7c8be
4 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -3,5 +3,5 @@ shader_type canvas_item;
void fragment() {
float dist = 1.0f - (distance(vec2(0.5f, 0.5f), UV.xy) * 2.0);
float value = smoothstep(0.0f, 0.01, dist);
COLOR = vec4(1.0, 1.0, 1.0, value);
COLOR = vec4(COLOR.xyz, value);
}