Skip to content

Search

Documentation

mesh

3D geometry from the mesh asset in source, drawn at the node. With a skin, the rig skeleton names deforms it.

On this page

3d · render · 10 properties · 3D

3D geometry from the mesh asset in source, drawn at the node. With a skin, the rig skeleton names deforms it.

In a scene, mesh is the node key that applies it. A script reaches each property below as a field on node.mesh: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.mesh.get() and node.mesh.set(table).

Properties

property type default description
cast_shadow bool true Whether this casts a shadow from the lights that cast
color color [1,1,1,1] Tint the texture and the material are multiplied by, as channel floats or #rrggbb / #rrggbbaa; an alpha below one draws it see-through
light_layers flags [] The light layers this is lit on: a light3d lights it when their light_layers share one; empty is every layer One of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32.
material asset · material — The material this draws with; empty draws with the built-in one
receive_shadows bool true Whether shadows land on it; off lights it as if nothing stood between it and every light
render_layers flags [] The layers this is drawn on: a camera3d draws it when their render_layers share one; empty is every layer One of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32.
segmentation_id int 0 The id render.snap_aov("segmentation") colours this node by; nodes sharing one share a colour. Zero takes one of its own, from 1 up At least 0.
skeleton node — The rig a skinned mesh deforms with; empty means this node
source asset · mesh — The mesh asset this node draws
texture asset · texture — Image file, project-relative, or a texture asset; empty draws the colour alone

Asset types this component references: material, mesh, texture.

Are you sure?