mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 23:42:59 +00:00
//sculpt brushes: __smooth → __gaussian
This commit is contained in:
parent
3e2687f82d
commit
1de037c341
5 changed files with 3 additions and 10 deletions
|
@ -29,9 +29,6 @@ return function(size)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
print("BEFORE_BLUR")
|
|
||||||
print(wea.sculpt.make_preview(brush, size))
|
|
||||||
|
|
||||||
-- Make the kernel & blur it
|
-- Make the kernel & blur it
|
||||||
local success, kernel = wea.conv.kernel_gaussian(kernel_size, 2)
|
local success, kernel = wea.conv.kernel_gaussian(kernel_size, 2)
|
||||||
if not success then return success, kernel end
|
if not success then return success, kernel end
|
||||||
|
@ -48,9 +45,5 @@ return function(size)
|
||||||
brush[i] = brush[i] / max_value
|
brush[i] = brush[i] / max_value
|
||||||
end
|
end
|
||||||
|
|
||||||
print("AFTER_BLUR")
|
|
||||||
print(wea.sculpt.make_preview(brush, size))
|
|
||||||
|
|
||||||
|
|
||||||
return true, brush, size
|
return true, brush, size
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
|
|
||||||
local __smooth = dofile(wea.modpath.."/lib/sculpt/brushes/__smooth.lua")
|
local __smooth = dofile(wea.modpath.."/lib/sculpt/brushes/__gaussian.lua")
|
||||||
|
|
||||||
return function(size)
|
return function(size)
|
||||||
local success, brush, size_actual = __smooth(size, 3)
|
local success, brush, size_actual = __smooth(size, 3)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
|
|
||||||
local __smooth = dofile(wea.modpath.."/lib/sculpt/brushes/__smooth.lua")
|
local __smooth = dofile(wea.modpath.."/lib/sculpt/brushes/__gaussian.lua")
|
||||||
|
|
||||||
return function(size)
|
return function(size)
|
||||||
local success, brush, size_actual = __smooth(size, 2)
|
local success, brush, size_actual = __smooth(size, 2)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
|
|
||||||
local __smooth = dofile(wea.modpath.."/lib/sculpt/brushes/__smooth.lua")
|
local __smooth = dofile(wea.modpath.."/lib/sculpt/brushes/__gaussian.lua")
|
||||||
|
|
||||||
return function(size)
|
return function(size)
|
||||||
local success, brush, size_actual = __smooth(size, 5)
|
local success, brush, size_actual = __smooth(size, 5)
|
||||||
|
|
Loading…
Reference in a new issue