Skip to content

Commit

Permalink
fix atmospheric fade from high orbit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mc-Pain committed Nov 22, 2023
1 parent 353b9b9 commit 2921562
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion data/shaders/opengl/rayleigh_sky.vert
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ vec3 computeIncidentLight(const in vec3 sunDirection, const in vec3 dir, const i
sphereEntryExitDist(t0, t1, vec3(0.f), dir, atmosphereRadius);
if (t0 == 0.f && t1 == 0.f) return vec3(0.f);
if (t0 > tmin && t0 > 0) tmin = t0;
if (t1 < tmax) tmax = t1;
int numSamples = 16;
float segmentLength = (tmax - tmin) / numSamples;
float tCurrent = tmin;
Expand Down

0 comments on commit 2921562

Please sign in to comment.