Builtin Library
README.md
avatar.surface
Choose what the worn avatar is made of and how it looks beyond its colours, per colour region
of its body (body, hair, top, ... and their everyday names: jacket, shirt, boots),
per part of the avatar by name and per worn slot (hat, held, back, ...):
material:matte,satin,glossy,plastic,rubber,fabric,velvet,leather,metal,chrome, one the avatar offers by name (materialsin itsavatar.json), or a material asset;finish:roughness,metalness,clearcoat,sheen(0 to 1) andemission(0 to 64);pattern:stripes,checks,dots,camouflage,spots,tabby, or a texture asset wrapped around it, withpattern_colourandpattern_scale;decal: an image (a texture asset) placed on it bydecal_place({ around, height, size, turn }).
Each call keeps the fields it leaves out; false takes a field, or a whole surface, off. The
surfaces are part of the look and ride avatar.save.
tools.use("avatar", "surface", {
jacket = { material = "leather", pattern = "camouflage", pattern_colour = "#2f3b1c" },
hat = { material = "metal", finish = { roughness = 0.2 } },
})