- fix softpoly light visibility bug
This commit is contained in:
parent
3e67a8bafa
commit
7b58eab332
12 changed files with 30 additions and 20 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#include "doomdef.h"
|
||||
#include "sbar.h"
|
||||
#include "poly_light.h"
|
||||
#include "polyrenderer/poly_renderer.h"
|
||||
|
||||
fixed_t PolyLightVisibility::LightLevelToShade(int lightlevel, bool foggy)
|
||||
{
|
||||
|
|
@ -41,3 +42,8 @@ fixed_t PolyLightVisibility::LightLevelToShade(int lightlevel, bool foggy)
|
|||
return (NUMCOLORMAPS * 2 * FRACUNIT) - ((lightlevel + 12) * (FRACUNIT*NUMCOLORMAPS / 128));
|
||||
}
|
||||
}
|
||||
|
||||
double PolyLightVisibility::FocalTangent()
|
||||
{
|
||||
return PolyRenderer::Instance()->Viewwindow.FocalTangent;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue