Expand description
Render millions of AABBs every frame with an instancing renderer.

§Demo
cargo run --example wave --release§Features
- vertex pulling renderer
- cuboid edge shading
- edge-only wireframes
- clipping planes
- multiple color modes: RGB and Linear-Range Scalar
- depth jitter to counteract z-fighting of coplanar cuboids
§License
Licensed under the Apache License Version 2.0 by copyright holders Duncan Fairbanks and Foresight Mining Software Corporation.
§Sponsors
The creation and maintenance of bevy_aabb_instancing is sponsored by
Foresight Mining Software Corporation.

Structs§
- Clipping
Plane Bundle - Clipping
Plane Range - The range of signed distances from the plane that don’t get clipped.
- Cuboid
- An axis-aligned box, extending from
minimumtomaximum. - Cuboid
Material - Shading options, constant for each draw call.
- Cuboid
Material Id - Denotes which
CuboidMaterialto use when renderingCuboids. - Cuboid
Material Map - Resource used to create and modify a set of
CuboidMaterialthat are automatically synced to shader uniforms. - Cuboids
- A set of cuboids to be extracted for rendering.
- Cuboids
Bundle - Scalar
HueOptions - Dynamic controls for coloring and visibility of scalar values encoded in
cuboid.color. - Vertex
Pulling Render Plugin - Renders the
Cuboidscomponent using the “vertex pulling” technique.
Constants§
- COLOR_
MODE_ RGB - “Manual” coloring based on RGB-valued
cuboid.color. - COLOR_
MODE_ SCALAR_ HUE - “Automatic” coloring based on scalar-valued
cuboid.color. SeeScalarHueOptions. - MAX_
CLIPPING_ PLANES - The clipping shader is
O(planes * cuboids), so we set a reasonable limit.