xiandie/scene/entity/ux/刮刮乐.gdshader

9 lines
150 B
Plaintext
Raw Normal View History

2025-02-07 12:52:15 +00:00
shader_type canvas_item;
uniform float grey_scale = .33;
void fragment() {
COLOR.a = step(COLOR.r, .0);
COLOR.rgb = vec3(grey_scale - COLOR.r);
}