Add field in TSubModel for storing multiplier value

This commit is contained in:
2026-01-13 09:27:36 +01:00
parent b5d595aca9
commit fdbbb13b66
2 changed files with 3 additions and 2 deletions

View File

@@ -370,11 +370,11 @@ std::pair<int, int> TSubModel::Load(cParser &parser, bool dynamic)
parser >> discard >> multiplier;
WriteLog("Found hotspot power!");
// recaluclate multiplier
multiplier = multiplier / 100.f;
diffuseMultiplier = multiplier / 100.f;
// apply color only on nvrenderer
if (Global.NvRenderer)
f4Diffuse *= multiplier;
f4Diffuse *= diffuseMultiplier;
}
else
parser.autoclear(false);

View File

@@ -117,6 +117,7 @@ public:
f4Emision { 1.0f,1.0f,1.0f,1.0f };
glm::vec3 DiffuseOverride { -1.f };
normalization m_normalizenormals { normalization::none }; // indicates vectors need to be normalized due to scaling etc
float diffuseMultiplier {1.0};
float fWireSize { 0.0f }; // nie używane, ale wczytywane
float fSquareMaxDist { 10000.0f * 10000.0f };
float fSquareMinDist { 0.0f };