mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@357 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
a6a64c52b5
commit
3884546474
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ float fogcalc(signed char shade, char vis)
|
|||
|
||||
// return(gvisibility/(shade<0?(shadetable[i]-glnegshadeoffset)*glnegshadescale:1)*(shade<0?1:shadetable[i]*glshadescale)*((float)((unsigned char)(vis<240?vis+16:vis-239))));
|
||||
|
||||
result = ((float)(vis<240?vis+16:vis-239))+(shade>0?shade:(shade*2));
|
||||
result = ((float)(vis<240?vis+16:0))+(shade>0?shade:(shade*2))/(vis>239?klabs(vis-256):1);
|
||||
|
||||
if(result < 0.000) result = 0.000;
|
||||
// if(result > 1.000) result = 1.000;
|
||||
|
|
Loading…
Reference in a new issue