From dbe8f3de744479c17eccf9f89acc716234f8d443 Mon Sep 17 00:00:00 2001 From: crodnu Date: Fri, 15 Mar 2019 04:07:32 -0300 Subject: [PATCH] changing the smoothing formula to one TJWhale suggested (#753) * changing the smoothing formula to one TJWhale suggested * f --- src/microbe_stage/compound_cloud_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microbe_stage/compound_cloud_system.cpp b/src/microbe_stage/compound_cloud_system.cpp index b6b45b42749..a9950109467 100644 --- a/src/microbe_stage/compound_cloud_system.cpp +++ b/src/microbe_stage/compound_cloud_system.cpp @@ -1178,7 +1178,7 @@ void // TODO: move this to the shaders for better performance (we would // need to pass a float instead of a byte). int intensity = - static_cast(255 * std::log(density[i][j] / 1000 + 1)); + static_cast(255 * 2 * std::atan(0.003f * density[i][j])); // This is the same clamping code as in the old version intensity = std::clamp(intensity, 0, 255);