Log inGet started
Package

surface.tool

Newest version

This package holds more than this page lists. See all of its files in its world.

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 (materials in its avatar.json), or a material asset;
  • finish: roughness, metalness, clearcoat, sheen (0 to 1) and emission (0 to 64);
  • pattern: stripes, checks, dots, camouflage, spots, tabby, or a texture asset wrapped around it, with pattern_colour and pattern_scale;
  • decal: an image (a texture asset) placed on it by decal_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 } },
})