mesh
A primitive or model drawn with a material.
| Field | Type | Default | Description |
|---|---|---|---|
type |
"mesh" |
required | Track type. |
name |
string | Optional name, used in error messages. | |
start |
number | 0 |
When the track starts, in seconds. |
end |
number | -1 |
When the track ends, in seconds. Defaults to the end of the effect; looping effects run forever. |
at |
attach | Where the track sits. | |
material |
material | How the track is shaded. | |
mesh |
string | "sphere" |
sphere, cube, cylinder, cone, torus, plane, or an OBJ model id such as mymod:models/fx/horn.obj. |
scale |
vector | [1,1,1] |
Size in blocks along each axis. |
rotation |
vector | [0,0,0] |
Rotation in degrees. |
spin |
vector | [0,0,0] |
Rotation speed in degrees per second. |
color |
color | "#ffffff" |
Colour over the track. |
detail |
integer | 24 |
Segments for round primitives. |
reveal |
mesh reveal | Grow the mesh into view along an axis. | |
displace |
mesh displace | Organic movement: the surface swells and ripples along its normals. |
