diff options
| author | Matt Kosarek <matt.kosarek@canonical.com> | 2025-12-29 10:04:39 -0500 |
|---|---|---|
| committer | Matt Kosarek <matt.kosarek@canonical.com> | 2025-12-29 10:04:39 -0500 |
| commit | 3b823cdb0b398b8365138bbcf5df60871dfcd61c (patch) | |
| tree | 263267a3f8c298fb0415195b52b39e1a009267e3 /themes/src/_shaders | |
| parent | fbc5d7dd1a9192c29daccdf12a7a067037ff2c2a (diff) | |
A much more interesting sun
Diffstat (limited to 'themes/src/_shaders')
| -rw-r--r-- | themes/src/_shaders/sun.frag | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/src/_shaders/sun.frag b/themes/src/_shaders/sun.frag index 028c0c2..2170b39 100644 --- a/themes/src/_shaders/sun.frag +++ b/themes/src/_shaders/sun.frag @@ -17,15 +17,15 @@ void main() { lowp float noiseValue = noise(TexCoord + time * 0.1) * 0.02; // Create soft edge using smoothstep - ensure fade reaches zero at the actual edge - lowp float innerEdge = 0.2; + lowp float innerEdge = 0.8; lowp float outerEdge = 1.0; lowp float alpha = 1.0 - smoothstep(innerEdge, outerEdge, dist); // Apply wave distortion to the edge alpha *= 1.0 - smoothstep(0.85 + wave + noiseValue * 2.0, 1.0, dist); - // Make edges even more transparent with additional fade - alpha = alpha * alpha * alpha; + // Make edges more transparent but not too much + alpha = alpha * alpha; // Add slight glow effect at the edge lowp float glow = smoothstep(0.5, 0.8, dist) * (1.0 - smoothstep(0.8, 1.0, dist)); |
