fix small issue with sunlight color sky absorbtion

This commit is contained in:
Xonk 2023-12-27 15:13:22 -05:00
parent 7bf793bf53
commit ea99cf846f

View File

@ -125,7 +125,7 @@ void main() {
vec3 skyAbsorb = vec3(0.0);
sunColor = calculateAtmosphere(vec3(0.0), sunVec, vec3(0.0,1.0,0.0), sunVec, -sunVec, planetSphere, skyAbsorb, 25,0.0);
sunColor = sunColorBase/4000. * (skyAbsorb);
sunColor = sunColorBase/4000. * (skyAbsorb*skyAbsorb);
// skyAbsorb = vec3(1.0);
// moonColor = calculateAtmosphere(vec3(0.0), -sunVec, vec3(0.0,1.0,0.0), sunVec, -sunVec, planetSphere, skyAbsorb, 25,0.5);
moonColor = moonColorBase/4000.0;