godot
godot copied to clipboard
Expose runtime baking functionality in OccluderInstance3D
This can be used in editor plugins and exported projects.
- This closes https://github.com/godotengine/godot-proposals/issues/4316.
Testing project: test_occluder_runtime_bake.zip
TODO
- [ ] Move saving to disk to a different method (e.g.
bake_scene_and_save()), so you can bake without saving to disk. This can be useful for procedurally generated levels that are discarded after a gameplay session, so caching wouldn't be relevant here.