2021-12-27 03:11:52 +00:00
local wea = worldeditadditions
local sculpt = {
brushes = {
2021-12-28 19:07:02 +00:00
circle_soft1 = dofile ( wea.modpath .. " /lib/sculpt/brushes/circle_soft1.lua " ) ,
2021-12-28 18:32:40 +00:00
circle = dofile ( wea.modpath .. " /lib/sculpt/brushes/circle.lua " ) ,
2021-12-28 19:07:02 +00:00
square = dofile ( wea.modpath .. " /lib/sculpt/brushes/square.lua " ) ,
gaussian_hard = dofile ( wea.modpath .. " /lib/sculpt/brushes/gaussian_hard.lua " ) ,
gaussian = dofile ( wea.modpath .. " /lib/sculpt/brushes/gaussian.lua " ) ,
gaussian_soft = dofile ( wea.modpath .. " /lib/sculpt/brushes/gaussian_soft.lua " ) ,
2021-12-27 03:11:52 +00:00
} ,
make_brush = dofile ( wea.modpath .. " /lib/sculpt/make_brush.lua " ) ,
2021-12-28 17:45:20 +00:00
make_preview = dofile ( wea.modpath .. " /lib/sculpt/make_preview.lua " ) ,
2021-12-27 03:11:52 +00:00
preview_brush = dofile ( wea.modpath .. " /lib/sculpt/preview_brush.lua " ) ,
read_brush_static = dofile ( wea.modpath .. " /lib/sculpt/read_brush_static.lua " ) ,
2021-12-28 02:17:26 +00:00
apply_heightmap = dofile ( wea.modpath .. " /lib/sculpt/apply_heightmap.lua " ) ,
2021-12-31 01:03:56 +00:00
apply = dofile ( wea.modpath .. " /lib/sculpt/apply.lua " ) ,
scan_static = dofile ( wea.modpath .. " /lib/sculpt/scan_static.lua " ) ,
import_static = dofile ( wea.modpath .. " /lib/sculpt/import_static.lua " ) ,
parse_static = dofile ( wea.modpath .. " /lib/sculpt/parse_static.lua " )
2021-12-27 03:11:52 +00:00
}
2021-12-31 01:39:04 +00:00
-- scan_sculpt is called after everything is loaded in the main init file
2021-12-31 01:03:56 +00:00
2021-12-27 19:36:57 +00:00
return sculpt
2021-12-27 03:11:52 +00:00
-- TODO: Automatically find & register all text file based brushes in the brushes directory
2021-12-28 02:17:26 +00:00
-- TODO: Implement automatic scaling of static brushes to the correct size. We have scale already, but we probably need to implement a proper 2d canvas scaling algorithm. Some options to consider: linear < [bi]cubic < nohalo/lohalo
2021-12-27 03:11:52 +00:00
-- Note that we do NOT automatically find & register computed brushes because that's an easy way to execute arbitrary Lua code & cause a security issue unless handled very carefully