MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / SetLookAt

Method SetLookAt

SampleFramework11/v1.02/Graphics/Camera.cpp:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void Camera::SetLookAt(const Float3 &eye, const Float3 &lookAt, const Float3 &up)
73{
74 view = XMMatrixLookAtLH(eye.ToSIMD(), lookAt.ToSIMD(), up.ToSIMD());
75 world = Float4x4::Invert(view);
76 position = eye;
77 orientation = XMQuaternionRotationMatrix(world.ToSIMD());
78
79 WorldMatrixChanged();
80}
81
82void Camera::SetWorldMatrix(const Float4x4& newWorld)
83{

Callers 2

RenderSunShadowMapMethod · 0.80

Calls 1

ToSIMDMethod · 0.45

Tested by

no test coverage detected