MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / Load

Method Load

Rtxpt/SampleGame/GamePropComponent.cpp:58–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 dquat m_blobRightRot = dquat::identity();
57
58 virtual void Load(const Json::Value & loadData) override
59 {
60 loadData["animTimeStart"] >> m_start;
61 loadData["animTimeStop"] >> m_stop;
62
63 for (auto & model : m_prop.GetModels())
64 {
65 for (auto & light : model->GetLights() )
66 {
67 auto & node = light->Node;
68 if (node->GetName()=="SpotLeft")
69 { m_spotLeft = light; m_spotLeftIntensity = light->Intensity; }
70 if (node->GetName() == "SpotRight")
71 { m_spotRight = light; m_spotRightIntensity = light->Intensity; }
72 if (node->GetName()=="BlobLeft")
73 { m_blobLeft = light; m_blobLeftRot = node->GetRotation(); m_blobLeftIntensity = light->Intensity; }
74 if (node->GetName() == "BlobRight")
75 { m_blobRight = light; m_blobRightRot = node->GetRotation(); m_blobRightIntensity = light->Intensity; }
76 }
77 }
78 }
79
80 void Tick(double gameTime, float animationTime, float deltaTime) override
81 {

Callers 1

CreateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected