Crate bevy_aabb_instancing_011

Crate bevy_aabb_instancing_011 

Source
Expand description

crates.io docs.rs

Render millions of AABBs every frame with an instancing renderer.

Example

§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.

Foresight Mining Software Corporation

Structs§

ClippingPlaneBundle
ClippingPlaneRange
The range of signed distances from the plane that don’t get clipped.
Cuboid
An axis-aligned box, extending from minimum to maximum.
CuboidMaterial
Shading options, constant for each draw call.
CuboidMaterialId
Denotes which CuboidMaterial to use when rendering Cuboids.
CuboidMaterialMap
Resource used to create and modify a set of CuboidMaterial that are automatically synced to shader uniforms.
Cuboids
A set of cuboids to be extracted for rendering.
CuboidsBundle
ScalarHueOptions
Dynamic controls for coloring and visibility of scalar values encoded in cuboid.color.
VertexPullingRenderPlugin
Renders the Cuboids component 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. See ScalarHueOptions.
MAX_CLIPPING_PLANES
The clipping shader is O(planes * cuboids), so we set a reasonable limit.

Type Aliases§

Color
Value that determines the color of a Cuboid based on the associated CuboidMaterial.
ColorMode
Bare enum for toggling shader behavior for Color.
MetaBits
Metadata encoded in 32 bits: