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:
15
client/assets/theme/shaders/title_background.gdshader
Normal file
15
client/assets/theme/shaders/title_background.gdshader
Normal 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);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://cfrs0nt60f2mb
|
||||
Reference in New Issue
Block a user