Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit c8821f0

Browse files
eihrulFohlen
authored andcommitted
cleaner atmo model
git-svn-id: http://svn.code.sf.net/p/sauerbraten/code@6007 07af1644-1164-4067-b897-63bf4dc9b748
1 parent 94873c3 commit c8821f0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/engine/rendersky.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,6 @@ static void drawatmosphere(int w, float z1clip = 0.0f, float z2clip = 1.0f, int
436436
float planetradius = earthradius*atmoplanetsize, atmoradius = planetradius + earthatmoheight*atmoheight;
437437
LOCALPARAMF(atmoradius, planetradius, atmoradius*atmoradius, atmoradius*atmoradius - planetradius*planetradius);
438438

439-
LOCALPARAMF(sampleoffset, max(0.15f + 0.75f * sunlightdir.z, 0.0f));
440-
441439
float gm = (1 - atmohaze)*0.2f + 0.75f;
442440
LOCALPARAMF(mie, 1 + gm*gm, -2*gm);
443441

0 commit comments

Comments
 (0)