mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-25 16:43:05 +00:00
math.pow → ^
This commit is contained in:
parent
52d24a63f3
commit
4a6cb2551c
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ function worldeditadditions.conv.kernel_gaussian(dimension, sigma)
|
|||
-- http://en.wikipedia.org/w/index.php?title=Gaussian_blur&oldid=608793634#Mechanics
|
||||
local gaussian = (1 / math.sqrt(
|
||||
math.pi * two_sigma_square
|
||||
)) * math.exp((-1) * (math.pow(distance, 2) / two_sigma_square));
|
||||
)) * math.exp((-1) * ((distance ^ 2) / two_sigma_square));
|
||||
|
||||
sum = sum + gaussian
|
||||
kernel[i*dimension + j] = gaussian
|
||||
|
|
Loading…
Reference in a new issue