Change globvis to be picked up from the r_light values in softpoly

This commit is contained in:
Magnus Norddahl 2017-01-13 15:22:22 +01:00
commit e1506df8a6
12 changed files with 16 additions and 3 deletions

View file

@ -137,6 +137,7 @@ void RenderPolyDecal::Render(const TriMatrix &worldToClip, const Vec4f &clipPlan
args.uniforms.flags = 0;
args.SetColormap(front->ColorMap);
args.SetTexture(tex, decal->Translation, true);
args.uniforms.globvis = (float)swrenderer::r_WallVisibility;
if (fullbrightSprite || swrenderer::fixedlightlev >= 0 || swrenderer::fixedcolormap)
{
args.uniforms.light = 256;