MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / GetWorldToViewMatrix

Method GetWorldToViewMatrix

src/engine/SceneGraph.cpp:142–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142dm::affine3 SceneCamera::GetWorldToViewMatrix() const
143{
144 auto node = GetNode();
145 if (!node)
146 return dm::affine3::identity();
147
148 return dm::affine3(inverse(node->GetLocalToWorldTransform())) * dm::scaling(dm::float3(1.f, 1.f, -1.f));
149}
150
151std::shared_ptr<SceneGraphLeaf> PerspectiveCamera::Clone()
152{

Callers

nothing calls this directly

Calls 2

scalingFunction · 0.85
inverseFunction · 0.50

Tested by

no test coverage detected