v0.12.2: Composable Scene
In v0.12.2, Scene exposes its render passes the way Pass and Renderer already do. A scene owns one ordered list of passes that you can read, append, remove, reorder, and replace, so a scene loaded from glTF composes on top of another pass in a frame instead of clearing it. Scene::load(...) is unchanged and still returns a renderable scene with sensible defaults. Scenes and the glTF loader arrived in v0.12.0.
What’s new
Section titled “What’s new”add_pass,remove_pass,get_pass,find_pass,list_passes, andset_passesread and edit the pass graph.add_toputs aModel,Camera, orLightinto a chosen pass by index or name.- Five methods decide whether the stock
CameraandLightinject at first render:no_defaults,no_default_camera,no_default_light,set_default_camera, andset_default_light. - A pass reports its label through
Pass::name.
Every method ships on Rust, Python, JavaScript, Swift, and Kotlin.
One behavior change
Section titled “One behavior change”Passes render in list order. One added after the geometry now draws after it, while one added before it (the common backdrop case) is unaffected.
Release notes: GitHub v0.12.2.
Rafael
docs/website/src/content/docs/blog/announcing-v0-12-2.mdx