diff --git a/assets/shaders/celestial.frag.glsl b/assets/shaders/celestial.frag.glsl index 95c8527f..8c450c46 100644 --- a/assets/shaders/celestial.frag.glsl +++ b/assets/shaders/celestial.frag.glsl @@ -27,17 +27,20 @@ void main() { vec2 uv = TexCoord - 0.5; float dist = length(uv); - // Hard disc with smooth edge - float disc = smoothstep(0.42, 0.35, dist); + // Hard circular cutoff — nothing beyond radius 0.35 + if (dist > 0.35) discard; - // Soft glow that fades to zero well within quad bounds - float glow = exp(-dist * dist * 32.0) * 0.5; + // Hard disc with smooth edge + float disc = smoothstep(0.35, 0.28, dist); + + // Soft glow confined within cutoff radius + float glow = exp(-dist * dist * 40.0) * 0.5; // Combine disc and glow float alpha = max(disc, glow) * push.intensity; - // Fade to zero well before quad edges - float edgeFade = 1.0 - smoothstep(0.30, 0.38, dist); + // Smooth fade to zero at cutoff boundary + float edgeFade = 1.0 - smoothstep(0.25, 0.35, dist); alpha *= edgeFade; vec3 color = push.celestialColor.rgb; diff --git a/assets/shaders/celestial.frag.spv b/assets/shaders/celestial.frag.spv index 54e31886..9fce6c5e 100644 Binary files a/assets/shaders/celestial.frag.spv and b/assets/shaders/celestial.frag.spv differ