| 89 | } |
| 90 | |
| 91 | void EnvironmentController::Flash(int r, int g, int b, float speed) |
| 92 | { |
| 93 | FlashProgress = 1.0f; |
| 94 | FlashSpeed = std::clamp(speed, 0.005f, 1.0f); |
| 95 | FlashColorBase = Vector3(std::clamp(r, 0, UCHAR_MAX) / (float)UCHAR_MAX, |
| 96 | std::clamp(g, 0, UCHAR_MAX) / (float)UCHAR_MAX, |
| 97 | std::clamp(b, 0, UCHAR_MAX) / (float)UCHAR_MAX); |
| 98 | } |
| 99 | |
| 100 | void EnvironmentController::UpdateSky(const ScriptInterfaceLevel& level) |
| 101 | { |
no test coverage detected