tiramisu/mesh

Asset-backed mesh node attributes.

Mesh nodes represent externally loaded assets such as GLTF, GLB, OBJ, FBX, and STL files. Loading is asynchronous and integrated into the scene runtime, so the node can appear in the view immediately and resolve later.

Values

pub fn cast_shadow(bool: Bool) -> attribute.Attribute(msg)

Enable or disable shadow casting for the mesh.

pub fn center(bool: Bool) -> attribute.Attribute(msg)

Center the loaded geometry around the origin when supported.

pub fn ext() -> extension.Extension

Internal node extension for mesh elements.

pub const hidden: fn(Bool) -> attribute.Attribute(a)

Hide or show the mesh object.

This controls Three.js visibility for the node rather than DOM layout.

pub fn on_model_error(
  to_msg: fn(String) -> a,
) -> attribute.Attribute(a)

Listen for model loading failures on this mesh.

The handler receives the mesh node id from the event detail.

pub fn on_model_load(
  to_msg: fn(String) -> a,
) -> attribute.Attribute(a)

Listen for successful model loading on this mesh.

The handler receives the mesh node id from the event detail.

pub fn receive_shadow(bool: Bool) -> attribute.Attribute(msg)

Enable or disable shadow receiving for the mesh.

pub const src: fn(String) -> attribute.Attribute(a)

Set the asset URL to load for this mesh.

Tiramisu resolves supported formats such as GLTF, GLB, OBJ, FBX, and STL through this attribute.

Search Document