| 231 | } |
| 232 | |
| 233 | std::array<Vec3, 8> SliceFrustum(const std::array<Vec3, 8>& corners, float t0, float t1) |
| 234 | { |
| 235 | std::array<Vec3, 8> out; |
| 236 | for (int i = 0; i < 4; i++) |
| 237 | { |
| 238 | out[i] = Lerp(corners[i], corners[i + 4], t0); |
| 239 | out[i + 4] = Lerp(corners[i], corners[i + 4], t1); |
| 240 | } |
| 241 | return out; |
| 242 | } |
| 243 | |
| 244 | Mat4 LightView(const Vec3& sunDir, const Vec3& up) |
| 245 | { |
no test coverage detected