Blender_bevy_components_wor.../examples/bevy_gltf_blueprints/materials
Mark Moissette e1aa510457
feat(materials): Materials libraries tooling & bevy code for material/texture reuse (#71)
* updates both gltf_auto_export & bevy_gltf_blueprints to avoid duplicating common materials across blueprints
* feat(tools/gltf_auto_export): added materials library export !
 * export all materials in use by blueprints to a separate temporary scene with cubes (for now)
   with the materials assigned
 * injecting MaterialInfo components to each blueprint above with Material name + library name
 * generated gltf is named based on the project/blend file, so multiple blend file projects
   can each have their own material libraries
 * added preferences & ui & handling to be able to toggle material library exports
* feat(bevy_gltf_blueprints): added support for materials library!
 * material injection (toggleable via the plugin configuration)
 * added example
 * added materials library + texture files + updated assets
 * added physics debug toggling
* updated documentation
* closes #63
2023-12-12 13:21:53 +01:00
..
assets feat(materials): Materials libraries tooling & bevy code for material/texture reuse (#71) 2023-12-12 13:21:53 +01:00
src feat(materials): Materials libraries tooling & bevy code for material/texture reuse (#71) 2023-12-12 13:21:53 +01:00
Cargo.lock feat(materials): Materials libraries tooling & bevy code for material/texture reuse (#71) 2023-12-12 13:21:53 +01:00
Cargo.toml feat(materials): Materials libraries tooling & bevy code for material/texture reuse (#71) 2023-12-12 13:21:53 +01:00
README.md feat(materials): Materials libraries tooling & bevy code for material/texture reuse (#71) 2023-12-12 13:21:53 +01:00

README.md

Materials example/demo

Example of materials use & reuse (including textures) to avoid redundant materials in blueprints gltfs that lead to asset & memory bloat

  • to be used together with gltf_auto_export version >0.6 with the "materials library" option for exports
  • It shows you how ou can configureBevy_gltf_blueprints to support material libraries
  • material library is here

Running this example

cargo run --features bevy/dynamic_linking