mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
Use those other averages. (#41)
This commit is contained in:
parent
7213794459
commit
cb3f3bf521
|
@ -634,8 +634,8 @@ BOOL CBrushShadowMap::IsShadowFlat( COLOR &colFlat)
|
|||
const SLONG slAvgR = ((ULONG)ubR + ubR1) /2;
|
||||
const SLONG slAvgG = ((ULONG)ubG + ubG1) /2;
|
||||
const SLONG slAvgB = ((ULONG)ubB + ubB1) /2;
|
||||
if( gp.gp_bDark) { slR -= slAvgR; slG -= slAvgR; slB -= slAvgR; }
|
||||
else { slR += slAvgR; slG += slAvgR; slB += slAvgR; }
|
||||
if( gp.gp_bDark) { slR -= slAvgR; slG -= slAvgG; slB -= slAvgB; }
|
||||
else { slR += slAvgR; slG += slAvgG; slB += slAvgB; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user