mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Add field in TSubModel for storing multiplier value
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user