The near and far plane values don't matter for frustum culling.
| 65 | |
| 66 | // The near and far plane values don't matter for frustum culling. |
| 67 | ViewState::ViewState( |
| 68 | const glm::dvec3& position, |
| 69 | const glm::dvec3& direction, |
| 70 | const glm::dvec3& up, |
| 71 | const glm::dvec2& viewportSize, |
| 72 | double horizontalFieldOfView, |
| 73 | double verticalFieldOfView, |
| 74 | const CesiumGeospatial::Ellipsoid& ellipsoid) |
| 75 | : ViewState( |
| 76 | Transforms::createViewMatrix(position, direction, up), |
| 77 | Transforms::createPerspectiveMatrix( |
| 78 | horizontalFieldOfView, |
| 79 | verticalFieldOfView, |
| 80 | 100.0, |
| 81 | std::numeric_limits<double>::infinity()), |
| 82 | viewportSize, |
| 83 | ellipsoid) {} |
| 84 | |
| 85 | ViewState::ViewState( |
| 86 | const glm::dmat4& viewMatrix, |
nothing calls this directly
no test coverage detected