Move visibility stuff into LightVisibility

This commit is contained in:
Magnus Norddahl 2017-01-26 09:49:07 +01:00
commit 4bbf1ba11c
22 changed files with 121 additions and 109 deletions

View file

@ -73,7 +73,7 @@ void RenderPolyParticle::Render(const TriMatrix &worldToClip, const Vec4f &clipP
PolyDrawArgs args;
args.uniforms.globvis = (float)swrenderer::r_SpriteVisibility;
args.uniforms.globvis = (float)swrenderer::LightVisibility::Instance()->ParticleGlobVis();
if (fullbrightSprite || swrenderer::fixedlightlev >= 0 || swrenderer::fixedcolormap)
{