tiramisu/renderer
Renderer host component and renderer-level attributes.
A renderer is the bridge between Lustre’s declarative view tree and the
Three.js runtime managed by Tiramisu. Each renderer owns one canvas, one
render loop, and one nested tiramisu.scene.
Most applications use this module indirectly through tiramisu.renderer,
while using the attribute helpers here to configure the renderer itself.
tiramisu.renderer(
"main-renderer",
[
renderer.width(1280),
renderer.height(720),
renderer.antialias(True),
],
[tiramisu.scene("scene", [], [])],
)
Values
pub fn alpha(enabled: Bool) -> attribute.Attribute(msg)
Enable or disable a transparent renderer background.
pub fn antialias(enabled: Bool) -> attribute.Attribute(msg)
Enable or disable antialiasing on the renderer.
pub const height: fn(Int) -> attribute.Attribute(a)
Set the renderer canvas height in CSS pixels.
pub const width: fn(Int) -> attribute.Attribute(b)
Set the renderer canvas width in CSS pixels.