| 106 | |
| 107 | namespace { |
| 108 | bool pointInClipVolume(const glm::dvec4& point) { |
| 109 | const double w = point.w; |
| 110 | return -w <= point.x && point.x <= w && -w <= point.y && point.y <= w && |
| 111 | 0.0 <= point.z && point.z <= w; |
| 112 | } |
| 113 | } // namespace |
| 114 | TEST_CASE("Test perspective projection matrices") { |
| 115 | const double horizontalFieldOfView = |