mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-21 00:07:50 +08:00
fix small issue with sunlight color sky absorbtion
This commit is contained in:
parent
7bf793bf53
commit
ea99cf846f
@ -125,7 +125,7 @@ void main() {
|
|||||||
|
|
||||||
vec3 skyAbsorb = vec3(0.0);
|
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 = 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);
|
// 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 = calculateAtmosphere(vec3(0.0), -sunVec, vec3(0.0,1.0,0.0), sunVec, -sunVec, planetSphere, skyAbsorb, 25,0.5);
|
||||||
moonColor = moonColorBase/4000.0;
|
moonColor = moonColorBase/4000.0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user