forked from mtcontrib/minetest-mod-snow
🐈
This commit is contained in:
parent
7370b142ed
commit
939c63e507
@ -49,9 +49,9 @@ local function do_ws_func(a, x)
|
|||||||
local n = x/(16000)
|
local n = x/(16000)
|
||||||
local y = 0
|
local y = 0
|
||||||
for k=1,1000 do
|
for k=1,1000 do
|
||||||
y = y + 1000*math.sin(math.pi * k^a * n)/(math.pi * k^a)
|
y = y + 1000*math.sin(math.pi * k^a * n)/(k^a)
|
||||||
end
|
end
|
||||||
return y
|
return y/math.pi
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user