Currently, I am working on enhancing an atmospheric shader based on the glsl-atmosphere library while using three.js.
Initially, I applied these shaders to a sphere and achieved excellent results :)
The original shaders lacked sun drawing elements, so I improvised by incorporating:
float spot = smoothstep(0.0, 1000.0, pMie)*10.0;
Following that, I included this code snippet in the return statement:
return iSun * (spot*totalMie+pRlh * kRlh * totalRlh + pMie * kMie * totalMie);
https://i.sstatic.net/0xtHZ.png
While it appears satisfactory from one perspective, when closer to the screen's edge: https://i.sstatic.net/mqMe7.jpg
It begins to resemble an ellipsoid...
How can I rectify this issue?