feat(title): warm shader background, pulsing glow, drifting embers

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-11 10:54:22 -05:00
parent a77bf03ee4
commit f07139256b
5 changed files with 86 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
shader_type canvas_item;
// Warm radial for the Title screen (mock: radial-gradient warm centre -> near
// black edge, centred at 70% 20%). Colours are Palette uniforms set by the title
// script (the DarkBay precedent), so no hex lives in the shader.
uniform vec4 warm : source_color;
uniform vec4 mid : source_color;
uniform vec4 edge : source_color;
uniform vec2 center = vec2(0.7, 0.2);
void fragment() {
float d = distance(UV, center);
vec3 c = mix(warm.rgb, mid.rgb, clamp(d / 0.45, 0.0, 1.0));
c = mix(c, edge.rgb, clamp((d - 0.45) / 0.55, 0.0, 1.0));
COLOR = vec4(c, 1.0);
}

View File

@@ -0,0 +1 @@
uid://cfrs0nt60f2mb