docs(bevy_gltf_components): added barebones info about lights & shadows handling

This commit is contained in:
kaosat.dev 2024-03-04 21:55:39 +01:00
parent 43267b7aa6
commit 6514ceff63
1 changed files with 10 additions and 0 deletions

View File

@ -104,6 +104,16 @@ Typically , the order of systems should be
***bevy_gltf_components (GltfComponentsSet::Injection)*** => ***replace_proxies***
## Additional features
- as of version 0.5 , this crate also includes automatic handling of lights in gltf files, to attempt to match Blender's eevee rendering as close as possible:
* **BlenderLightShadows** (automatically generated by the gltf_auto_export Blender add-on) allows you to toggle light's shadows on/off in Blender and have matching
behaviour in Bevy
* **BlenderBackgroundShader** aka background color is also automatically set on the Bevy side
* **BlenderShadowSettings** sets the cascade_size on the bevy side to match the one configured in Blender
If these components are present in your gltf file, they will be handled automatically by this crate, will be ignored otherwise.
## Examples
https://github.com/kaosat-dev/Blender_bevy_components_workflow/tree/main/examples/basic