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

Method GetDirection

src/engine/SceneTypes.cpp:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67dm::double3 Light::GetDirection() const
68{
69 auto node = GetNode();
70 if (!node)
71 return dm::double3::zero();
72
73 daffine3 localToWorld = node->GetLocalToWorldTransform();
74 return -normalize(double3(localToWorld.m_linear.row2));
75}
76
77void Light::SetPosition(const dm::double3& position) const
78{

Callers 6

SetupForPlanarViewMethod · 0.80
SetupForCubemapViewMethod · 0.80
FillShaderParametersMethod · 0.80
LightEditor_SpotMethod · 0.80

Calls 1

normalizeFunction · 0.85

Tested by

no test coverage detected