Only add the lightmode actually being used into the shader

This commit is contained in:
Magnus Norddahl 2023-04-19 02:28:32 +02:00
commit 5c9ff283a6
14 changed files with 360 additions and 280 deletions

View file

@ -481,6 +481,8 @@ void HWDrawInfo::RenderScene(FRenderState &state)
const auto &vp = Viewpoint;
RenderAll.Clock();
state.SetLightMode((int)lightmode);
state.SetDepthMask(true);
state.EnableFog(true);