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

Method UpdateWorldToView

src/app/Camera.cpp:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29using namespace donut::app;
30
31void BaseCamera::UpdateWorldToView()
32{
33 m_MatTranslatedWorldToView = affine3::from_cols(m_CameraRight, m_CameraUp, m_CameraDir, 0.f);
34 m_MatWorldToView = translation(-m_CameraPos) * m_MatTranslatedWorldToView;
35}
36
37void BaseCamera::BaseLookAt(float3 cameraPos, float3 cameraTarget, float3 cameraUp)
38{

Callers

nothing calls this directly

Calls 1

translationFunction · 0.85

Tested by

no test coverage detected