//sculpt brushes: __smooth → __gaussian

This commit is contained in:
Starbeamrainbowlabs 2021-12-28 18:35:16 +00:00
parent 3e2687f82d
commit 1de037c341
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
5 changed files with 3 additions and 10 deletions

View file

@ -29,9 +29,6 @@ return function(size)
end
end
print("BEFORE_BLUR")
print(wea.sculpt.make_preview(brush, size))
-- Make the kernel & blur it
local success, kernel = wea.conv.kernel_gaussian(kernel_size, 2)
if not success then return success, kernel end
@ -48,9 +45,5 @@ return function(size)
brush[i] = brush[i] / max_value
end
print("AFTER_BLUR")
print(wea.sculpt.make_preview(brush, size))
return true, brush, size
end

View file

@ -1,6 +1,6 @@
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)
local success, brush, size_actual = __smooth(size, 3)

View file

@ -1,6 +1,6 @@
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)
local success, brush, size_actual = __smooth(size, 2)

View file

@ -1,6 +1,6 @@
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)
local success, brush, size_actual = __smooth(size, 5)