You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are correct. I originally showcased multiple methods of instancing, including using a texture. I used storage buffers as the default method, as I was interested in them at the time.
I'm thinking of switching to using vertex buffers for instancing, but I'm currently busy getting wgpu to work with wasm-pack. You're welcome to make a pull request.
Assuming you have a second
VertexBufferDescriptor
set withInputStepMode::Instance
, you can simply set an instance buffer like so:This is a lot easier than adding it to the bind group like you're doing in the instancing tutorial.
The text was updated successfully, but these errors were encountered: