diff --git a/src/graphics/render/Decorator.cpp b/src/graphics/render/Decorator.cpp index 85e86ba40..f8a6c8372 100644 --- a/src/graphics/render/Decorator.cpp +++ b/src/graphics/render/Decorator.cpp @@ -115,7 +115,10 @@ void Decorator::updateAcoustics(const Camera& camera) { hit++; averageDistance += distance * 0.2f; } - float decayTime = (averageDistance / hit) * glm::max(0.0f, glm::pow(hit / static_cast(rays), 9.0f) - 0.6f) * 1.6f; + float decayTime = + glm::sqrt(averageDistance / hit) * + glm::max(0.0f, glm::pow(hit / static_cast(rays), 3.0f) - 0.6f) * + 1.6f; decayTime *= 2.5f; decayTime *= decayTime; logger.info() << "rays hit " << hit << "/" << rays << " decay-time: " << decayTime;