Add transforms option when drawing meshes.
Closed this issue · 2 comments
Noxagonal commented
Add transforms option when drawing meshes.
Noxagonal commented
When calling Window::DrawMesh() there should be a way to define a drawing transforms for it.
Currently the only way to draw the same mesh on multiple locations is to modify each vertex of the mesh on CPU.
Could use either PushConstants or UniformBuffer for this. UniformBuffer would also enable drawing instances of a mesh.
Noxagonal commented
Implemented instanced rendering with 4*4 matrix transforms. Transforms are copied to the GPU via storage buffer. Each instance has it's own transformation.