UmbraObject struct

Description of a scene object.

Objects are the top level entities in an input scene.

Public variables

UmbraMeshHandle mesh
The mesh used by this Object.
UmbraMaterial material
The material used for rendering this Object.
UmbraFloat4_4 transform
Transformation from mesh to scene coordinate space.
UmbraMatrixFormat matrixFormat
Format of the transform matrix.
UmbraTriangleWinding triangleWinding
Winding of the triangles in the associated Mesh.
UmbraFloat3MinMax bounds
Axis-Aligned bounds of this Object, in scene coordinates.

Variable details

UmbraTriangleWinding UmbraObject::triangleWinding

Winding of the triangles in the associated Mesh.

Should account for possible mirroring by the transform.

UmbraFloat3MinMax UmbraObject::bounds

Axis-Aligned bounds of this Object, in scene coordinates.

This value is optional but should be provided if accurate bounds are available.