Skip to content

Commit

Permalink
SmoothHeightMesh Desync fix(?)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhog committed Feb 13, 2021
1 parent 4e34993 commit 4bdbc81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rts/Sim/Misc/SmoothHeightMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ void SmoothHeightMesh::MakeSmoothMesh()
const auto fillGaussianKernelFunc = [blurSize](std::vector<float>& gaussianKernel, const float sigma) {
gaussianKernel.resize(blurSize + 1);

const auto gaussianG = [](const int x, const float sigma) {
const auto gaussianG = [](const int x, const float sigma) -> float {
// 0.3989422804f = 1/sqrt(2*pi)
return 0.3989422804f * exp(-0.5f * x * x / (sigma * sigma)) / sigma;
return 0.3989422804f * math::expf(-0.5f * x * x / (sigma * sigma)) / sigma;
};

float sum;
Expand Down

0 comments on commit 4bdbc81

Please sign in to comment.