add moonphases that alter the brightness of night. tweak torch and sky lightmap curves a bit

This commit is contained in:
Xonk
2023-06-19 23:32:39 -04:00
parent 7eb49cd12c
commit cb404760be
10 changed files with 79 additions and 38 deletions

View File

@ -95,7 +95,8 @@ vec3 sky_transmittance(vec3 position, vec3 direction, const float steps) {
vec3 calculateAtmosphere(vec3 background, vec3 viewVector, vec3 upVector, vec3 sunVector, vec3 moonVector, out vec2 pid, out vec3 transmittance, const int iSteps, float noise) {
const int jSteps = 4;
vec3 viewPosition = (sky_planetRadius + eyeAltitude) * upVector;
vec2 aid = rsi(viewPosition, viewVector, sky_atmosphereRadius);