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

Method GetViewToWorldMatrix

src/engine/SceneGraph.cpp:133–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133dm::affine3 SceneCamera::GetViewToWorldMatrix() const
134{
135 auto node = GetNode();
136 if (!node)
137 return dm::affine3::identity();
138
139 return dm::scaling(dm::float3(1.f, 1.f, -1.f)) * dm::affine3(node->GetLocalToWorldTransform());
140}
141
142dm::affine3 SceneCamera::GetWorldToViewMatrix() const
143{

Callers 2

SwitchToFirstPersonMethod · 0.80
SwitchToThirdPersonMethod · 0.80

Calls 1

scalingFunction · 0.85

Tested by

no test coverage detected