| 255 | } |
| 256 | |
| 257 | void SimpleCamera::getCameraProjectionMatrix(float projectionMatrix[16]) const |
| 258 | { |
| 259 | if (m_data->m_enableVR) |
| 260 | { |
| 261 | for (int i = 0; i < 16; i++) |
| 262 | { |
| 263 | projectionMatrix[i] = m_data->m_projectionMatrixVR[i]; |
| 264 | } |
| 265 | } |
| 266 | else |
| 267 | { |
| 268 | b3CreateFrustum(-m_data->m_aspect * m_data->m_frustumZNear, m_data->m_aspect * m_data->m_frustumZNear, -m_data->m_frustumZNear, m_data->m_frustumZNear, m_data->m_frustumZNear, m_data->m_frustumZFar, projectionMatrix); |
| 269 | } |
| 270 | } |
| 271 | void SimpleCamera::setVRCameraOffsetTransform(const float offset[16]) |
| 272 | { |
| 273 | for (int i = 0; i < 16; i++) |
no test coverage detected