-
Hi again Filament team,
Problem
Solution?
Or is there a better solution to get hardware instancing working on |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I don't think gltfio will support hardware instancing without some work, but if you're building Filament from source you can hack this. Essentially what you want to do though is call
This allows you to supply an |
Beta Was this translation helpful? Give feedback.
I don't think gltfio will support hardware instancing without some work, but if you're building Filament from source you can hack this. Essentially what you want to do though is call
.instances
onRenderableManager::Builder
each time gltfio creates a Renderable. We merged a new API a few weeks ago:This allows you to supply an
InstanceBuffer
with transforms to automatically offset the position of each instance, so you don't need to change the vertex shader.