MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / getUpVector

Method getUpVector

Source/Falcor/Scene/Camera/CameraController.cpp:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 float3 CameraController::getUpVector() const
52 {
53 uint32_t index = (uint32_t)mUpDirection;
54 FALCOR_ASSERT(index < 6);
55 float3 up{0.f};
56 up[index / 2] = (index % 2 == 0) ? 1.f : -1.f;
57 return up;
58 }
59
60 void OrbiterCameraController::setModelParams(const float3& center, float radius, float distanceInRadius)
61 {

Callers 3

manipulateGridPlaneMethod · 0.80
addViewpointMethod · 0.80
updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected