mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-02-17 01:45:41 +00:00
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:
parent
48767b2267
commit
7ec7906c0f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue