Skip to content

Search

Documentation

shape3d

A 3D primitive at the node, tinted by color and drawn with texture: shape is a sphere, box, capsule, cylinder, cone, plane, torus, pyramid, prism or…

On this page

3d · render · 9 properties · 3D

A 3D primitive at the node, tinted by color and drawn with texture: shape is a sphere, box, capsule, cylinder, cone, plane, torus, pyramid, prism or tube, and the dimensions that kind reads.

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

Properties

property type default description
cast_shadow bool true Whether this casts a shadow from the lights that cast
color color [0.8,0.8,0.8,1] Tint, as channel floats or #rrggbb / #rrggbbaa
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.
shape variant {"corner_radius":0,"kind":"box","segments":32,"size":[1,1,1]} The primitive drawn, and its dimensions
texture asset · texture — Image file, project-relative, or a texture asset, drawn over the shape's own UVs; empty draws the colour alone

Asset types this component references: material, texture.

Are you sure?