Expand description

A collection of objects (implementing the Object trait) that can be rendered directly or used in a render call, for example render_pass. Can be a combination of any geometry and material by using the Gm struct.

Structs

Three arrows indicating the three main axes; the x-axis (red), the y-axis (green) and the z-axis (blue). Used for easily debugging where objects are placed in the 3D world.

A bounding box object used for visualising an AxisAlignedBoundingBox.

A circle 2D object which can be rendered.

Model consisting of a set of geometries and materials. The geometries might have a material name that matches a name of a material in the list of materials. Also, the same material can be applied to several geometries.

Volume data consisting of voxel data inside a cube.

A combination of a Geometry and a Material which implements Object. Use this to combine any geometry and material into an object that can be used in a render function for example render_pass. The only requirement is that the geometry provides all the per vertex information (normals, uv coordinates, etc.) that the material requires.

A level-of-detail technique to replace rendering of high-poly meshes. Should only be used where details cannot be seen, for example when the objects are far away. A set of objects are rendered from different angles into a set of textures and the textures are then rendered continuously instead of the expensive objects.

Similar to Model, except it is possible to render many instances of the same model efficiently.

A line 2D object which can be rendered.

A 3D model consisting of a set of Gms with Meshes as the geometries and a material type specified by the generic parameter.

A rectangle 2D object which can be rendered.

An illusion of a sky.

A voxel grid inside a cube with a material type specified by the generic parameter.

Traits

Represents a 3D object which can be rendered directly or used in a render call, for example render_pass.

Represents a 2D object which can be rendered.

Type Definitions

CpuVolumeDeprecated