//sculpt brushes: __smooth → __gaussian

This commit is contained in:
Starbeamrainbowlabs 2021-12-28 18:35:16 +00:00
parent 3e2687f82d
commit 1de037c341
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2
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)