Open mokargas opened 1 year ago
Geometry is not optional for InstancedUniformsMesh
, you have to pass a non-null reference to its constructor. The surrounding design in three.js is notably awful since it has two optional arguments in front of a mandatory one, so you'll see [null, null, 1]
passed to instanced mesh when used declaratively where mutably setting geometry/material is useful. That isn't the case here and they should be passed imperatively.
https://codesandbox.io/s/instanceduniformsmesh-r3f-forked-fsvdn7
The R3F example with an updated stack (r154) https://codesandbox.io/s/instanceduniformsmesh-r3f-forked-nqvrvl?file=/src/index.js
Not sure where to begin with this one, but my current guess is the API has moved on