This commit is contained in:
Forrest 2026-10-01 23:01:56 -04:00
parent 0cba7f5ee0
commit 32ed347b58
172 changed files with 5464 additions and 582 deletions

View file

@ -17,6 +17,8 @@ uniform bool rim_glow = true;
// rgb is the color, a the strength.
instance uniform vec4 highlight : source_color = vec4(0.0);
// A brief flash on top of the highlight (hits, reveals, rushes); Card3D fades it out.
instance uniform vec4 flash : source_color = vec4(0.0);
// 0 is normal, 1 dark gray: disabled Hardware and Programs.
instance uniform float dim = 0.0;
@ -36,5 +38,5 @@ void fragment() {
float border = min(min(uv.x, 1.0 - uv.x), min(uv.y, 1.0 - uv.y));
glow = mix(0.12, 1.6, 1.0 - smoothstep(0.0, 0.07, border));
}
EMISSION = highlight.rgb * highlight.a * glow;
EMISSION = highlight.rgb * highlight.a * glow + flash.rgb * flash.a * (0.35 + glow);
}