Skip to main content

OpBaseColored

Client Server

Methods​

OpBaseColored Color(Vec3|number r, number? g, number? b)​

nil Material(materialName|'none'|nil mat)​

Apply a voxel material. How it interacts with Color/Texture:

  • textured materials (stone/concrete/bedrock/sand/flesh/bone) always show their texture, ignoring Color
  • metals stay reflective; other (untextured) materials take your Color if set, else their own albedo
  • a Texture image overrides Color too, unless you set a Color which then tints it Omitting Material(), or passing nil, preserves existing material assignments. On Paint, Material("none") or Material("") clears them. Add does not support clearing yet.

OpBaseColored Metallicity(number metallicity)​

OpBaseColored Roughness(number roughness)​