Turn off lighting if fixed shading (or no normals) flag is present. Fixes some of the lighting weirdness in scud

This commit is contained in:
Ian Curtis 2016-04-30 20:32:44 +00:00
parent 48767b2267
commit 7ec7906c0f

View file

@ -837,7 +837,7 @@ void CNew3D::CacheModel(Model *m, const UINT32 *data)
currentMesh->alphaTest = ph.AlphaTest();
currentMesh->textureAlpha = ph.TextureAlpha();
currentMesh->polyAlpha = ph.PolyAlpha();
currentMesh->lighting = ph.LightEnabled();
currentMesh->lighting = ph.LightEnabled() && !ph.FixedShading();
if (!ph.Luminous()) {
currentMesh->fogIntensity = 1.0f;