Crate bevy_aabb_instancing_011
source ·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
- The range of signed distances from the plane that don’t get clipped.
- An axis-aligned box, extending from
minimum
tomaximum
. - Shading options, constant for each draw call.
- Denotes which
CuboidMaterial
to use when renderingCuboids
. - Resource used to create and modify a set of
CuboidMaterial
that are automatically synced to shader uniforms. - A set of cuboids to be extracted for rendering.
- Dynamic controls for coloring and visibility of scalar values encoded in
cuboid.color
. - Renders the
Cuboids
component using the “vertex pulling” technique.
Constants
- “Manual” coloring based on RGB-valued
cuboid.color
. - “Automatic” coloring based on scalar-valued
cuboid.color
. SeeScalarHueOptions
. - The clipping shader is
O(planes * cuboids)
, so we set a reasonable limit.
Type Aliases
- Value that determines the color of a
Cuboid
based on the associatedCuboidMaterial
. - Bare enum for toggling shader behavior for [
Color
]. - Metadata encoded in 32 bits: