| 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 | { |
no outgoing calls
no test coverage detected