mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 13:59:19 +02: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;
|
parser >> discard >> multiplier;
|
||||||
WriteLog("Found hotspot power!");
|
WriteLog("Found hotspot power!");
|
||||||
// recaluclate multiplier
|
// recaluclate multiplier
|
||||||
multiplier = multiplier / 100.f;
|
diffuseMultiplier = multiplier / 100.f;
|
||||||
|
|
||||||
// apply color only on nvrenderer
|
// apply color only on nvrenderer
|
||||||
if (Global.NvRenderer)
|
if (Global.NvRenderer)
|
||||||
f4Diffuse *= multiplier;
|
f4Diffuse *= diffuseMultiplier;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
parser.autoclear(false);
|
parser.autoclear(false);
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ public:
|
|||||||
f4Emision { 1.0f,1.0f,1.0f,1.0f };
|
f4Emision { 1.0f,1.0f,1.0f,1.0f };
|
||||||
glm::vec3 DiffuseOverride { -1.f };
|
glm::vec3 DiffuseOverride { -1.f };
|
||||||
normalization m_normalizenormals { normalization::none }; // indicates vectors need to be normalized due to scaling etc
|
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 fWireSize { 0.0f }; // nie używane, ale wczytywane
|
||||||
float fSquareMaxDist { 10000.0f * 10000.0f };
|
float fSquareMaxDist { 10000.0f * 10000.0f };
|
||||||
float fSquareMinDist { 0.0f };
|
float fSquareMinDist { 0.0f };
|
||||||
|
|||||||
Reference in New Issue
Block a user