https://github.com/demindiro/godot_3d_batcher
Automatically use MultiMeshes for objects with the same mesh.
https://github.com/demindiro/godot_3d_batcher
Last synced: over 1 year ago
JSON representation
Automatically use MultiMeshes for objects with the same mesh.
- Host: GitHub
- URL: https://github.com/demindiro/godot_3d_batcher
- Owner: Demindiro
- License: mit
- Created: 2021-03-20T08:39:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-21T15:46:17.000Z (over 5 years ago)
- Last Synced: 2025-02-07T06:26:56.416Z (over 1 year ago)
- Language: Rust
- Size: 896 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Godot 3D batcher
This addon will automatically batch nodes with the same mesh with MultiMeshes.
This can greatly reduce the amount of required drawcalls, improving performance.
## How to use
- Copy `addons/3d_batcher` to your project
- Add `BatchedMeshManager` as an Autoload
- Add a `BatchedMeshInstance` (or create a Spatial and add the
`batched_mesh_instance.gdns` script manually)
- Add any mesh
- Done!
To use colors, set `use_color` to true and make sure the material uses vertex
colors as albedo (`COLOR` property in shader code).
## Limitations
Frustum culling does not work properly with shadows. I'm unsure how to fix
that properly. To disable it, add a script with
`BatchedMeshManager.enable_culling = false`.