diff --git a/Src/Graphics/New3D/New3D.cpp b/Src/Graphics/New3D/New3D.cpp index c22f694..9159a82 100644 --- a/Src/Graphics/New3D/New3D.cpp +++ b/Src/Graphics/New3D/New3D.cpp @@ -886,16 +886,8 @@ void CNew3D::CacheModel(Model *m, const UINT32 *data) currentMesh->specularCoefficient = 0; // ph.SpecularValue(); } } - - /* - if (!ph.Luminous()) { - currentMesh->fogIntensity = 1.0f; - } - else { - currentMesh->fogIntensity = ph.LightModifier(); - }*/ - - currentMesh->fogIntensity = 1.0; + + currentMesh->fogIntensity = ph.LightModifier(); if (ph.TexEnabled()) { currentMesh->format = ph.TexFormat(); diff --git a/Src/Graphics/New3D/PolyHeader.cpp b/Src/Graphics/New3D/PolyHeader.cpp index f0048ce..63c7489 100644 --- a/Src/Graphics/New3D/PolyHeader.cpp +++ b/Src/Graphics/New3D/PolyHeader.cpp @@ -330,7 +330,7 @@ bool PolyHeader::Luminous() float PolyHeader::LightModifier() { - return (float)((header[6] >> 11) & 0x1F) * (1.0f / 31.0f); + return ((header[6] >> 11) & 0x1F) * (1.0f / 16.0f); } //