bevy_dyn_material 0.2.0

Dynamic Material for Bevy.
Documentation

Dynamic shader material for Bevy

Provide support for dynamically adding/removing material uniforms/textures.

This can be used by shader graphs to support customizing material data at runtime.

Try it out

Run the example:

cargo run --release --example simple

Cubes with dynamic materials

The two large cubes are the parents and each has 4 child cubes. There are two instances (I=1/2) of the dynamic material StandardDynMaterial. Each parent cube and it's children use the same instance ID for their dynamic material.

Controls

  • Pane: right click and drag.
  • Rotate: left click and drag.
  • Zoom: mouse scroll wheel.
  • Escape: Open world inspector - Use this to edit the dynamic material of the parent/child cubes.
  • Open shader code editors for each cube: Parent cubes: crtl + S (parent 1), crtl + D (parent 2) Child cubs: crtl + 1/2/3/4/5/6/7/8

Versions

  • Bevy 0.18: node_engine = "0.2.0"
  • Bevy 0.17: node_engine = "0.1.1"