three.js
three.js copied to clipboard
Renderer: Auto-Instancing [WIP]
Description
renderer.autoInstancing = true will automatically instantiates a Mesh that contains the same similarities to another Mesh except for position/rotation/scale. Before release, it is important to decide on what policy to adopt for expanding/unexpand buffers, how to adopt hysteresis or not for example, among some extra checks and tests that I need to made.
The example below is rendered in just two draw calls, and this process is done automatically without additional code.
https://raw.githack.com/sunag/three.js/dev-auto-instance/examples/webgpu_auto_instance_mesh.html
Amazing feature!!!