Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all
Unified · Split
| @@ -2310,6 +2310,7 @@ void Application::updateShadowMap() { · 2309 unmodified lines | |||
| 2310 | glm::quat rotation = rotationBetween(IDENTITY_FRONT, lightDirection); | 2310 | glm::quat rotation = rotationBetween(IDENTITY_FRONT, lightDirection); |
| 2311 | glm::quat inverseRotation = glm::inverse(rotation); | 2311 | glm::quat inverseRotation = glm::inverse(rotation); |
| 2312 | 2312 | ||
| 2313 | const float SHADOW_MATRIX_DISTANCES[] = { 0.0f, 2.0f, 6.0f, 14.0f, 30.0f }; | ||
| 2313 | const glm::vec2 MAP_COORDS[] = { glm::vec2(0.0f, 0.0f), glm::vec2(0.5f, 0.0f), | 2314 | const glm::vec2 MAP_COORDS[] = { glm::vec2(0.0f, 0.0f), glm::vec2(0.5f, 0.0f), |
| 2314 | glm::vec2(0.0f, 0.5f), glm::vec2(0.5f, 0.5f) }; | 2315 | glm::vec2(0.0f, 0.5f), glm::vec2(0.5f, 0.5f) }; |
| 2315 | 2316 | ||