summaryrefslogtreecommitdiff
path: root/themes/src/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'themes/src/shaders')
-rw-r--r--themes/src/shaders/sun_frag.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/src/shaders/sun_frag.cpp b/themes/src/shaders/sun_frag.cpp
index 30553e0..696b3b9 100644
--- a/themes/src/shaders/sun_frag.cpp
+++ b/themes/src/shaders/sun_frag.cpp
@@ -19,15 +19,15 @@ const char* shader_sun_frag = "varying lowp vec4 VertexColor; \n"
" lowp float noiseValue = noise(TexCoord + time * 0.1) * 0.02; \n"
" \n"
" // Create soft edge using smoothstep - ensure fade reaches zero at the actual edge \n"
-" lowp float innerEdge = 0.2; \n"
+" lowp float innerEdge = 0.8; \n"
" lowp float outerEdge = 1.0; \n"
" lowp float alpha = 1.0 - smoothstep(innerEdge, outerEdge, dist); \n"
" \n"
" // Apply wave distortion to the edge \n"
" alpha *= 1.0 - smoothstep(0.85 + wave + noiseValue * 2.0, 1.0, dist); \n"
" \n"
-" // Make edges even more transparent with additional fade \n"
-" alpha = alpha * alpha * alpha; \n"
+" // Make edges more transparent but not too much \n"
+" alpha = alpha * alpha; \n"
" \n"
" // Add slight glow effect at the edge \n"
" lowp float glow = smoothstep(0.5, 0.8, dist) * (1.0 - smoothstep(0.8, 1.0, dist)); \n"