| 559 | // Cascaded-shadow kernel (pure). |
| 560 | |
| 561 | Mat4 Translate(const Vec3& t) |
| 562 | { |
| 563 | Mat4 m = Identity(); |
| 564 | m.at(0, 3) = t.x; |
| 565 | m.at(1, 3) = t.y; |
| 566 | m.at(2, 3) = t.z; |
| 567 | return m; |
| 568 | } |
| 569 | |
| 570 | std::array<Vec3, 8> CameraFrustumCornersWorld(const Vec3& camPos, const Vec3& forward, const Vec3& right, |
| 571 | const Vec3& up, float tanHalfX, float tanHalfY, float nearD, float farD) |
no test coverage detected