Versions in this module Expand all Collapse all v0 v0.0.13 Nov 7, 2026 Changes in this version + const MaxTexture + type Camera struct + FOV float32 + Far float32 + Near float32 + Position Vec3 + Target Vec3 + type Light struct + Color ui.Color + Direction Vec3 + Intensity float32 + type Mat4 [16]float32 + type Mesh struct + func Box(w, h, d float32) *Mesh + func NewMesh(positions, normals []Vec3, indices []uint32) *Mesh + func NewTexturedMesh(positions, normals []Vec3, uvs []UV, indices []uint32) *Mesh + func Plane(w, d float32) *Mesh + func Sphere(r float32) *Mesh + type Node struct + Children []Node + Color ui.Color + DoubleSided bool + ID string + Matrix *Mat4 + Mesh *Mesh + NoShadow bool + Position Vec3 + Rotation Vec3 + Scale Vec3 + Shine float32 + Spin Spin + Texture *Texture + Unlit bool + func Fit(n Node, size float32) Node + func LoadGLTF(data []byte, files func(uri string) ([]byte, error)) (Node, error) + type Spin struct + Axis Vec3 + Speed float32 + type Texture struct + Height int + Width int + func NewTexture(data []byte) (*Texture, error) + type UV struct + U float32 + V float32 + type Vec3 struct + X float32 + Y float32 + Z float32 + func Bounds(n Node) (lo, hi Vec3) + func V(x, y, z float32) Vec3 + type View struct + Ambient float32 + Background ui.Color + Camera Camera + Lights []Light + Nodes []Node + OnTap func(id string) + Orbit bool + Shadows bool + Style ui.Style + func (v View) Hit(x, y, aspect float32) string + func (v View) Render(c *ui.Ctx) ui.Component