mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
With r_usenewshade 3, do apply starting fog dist. eqn. for negative shade.
git-svn-id: https://svn.eduke32.com/eduke32@4403 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5d2ef07986
commit
e7d0c0abcb
1 changed files with 1 additions and 1 deletions
|
@ -555,7 +555,7 @@ static inline void fogcalc(int32_t tile, int32_t shade, int32_t vis, int32_t pal
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fogresult = (r_usenewshading == 3) ? 0 : -(FOGDISTCONST * shade)/combvis;
|
fogresult = (r_usenewshading == 3 && shade > 0) ? 0 : -(FOGDISTCONST * shade)/combvis;
|
||||||
fogresult2 = (FOGDISTCONST * (numshades-1-shade))/combvis;
|
fogresult2 = (FOGDISTCONST * (numshades-1-shade))/combvis;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue