webai-community / aquarium

BSD 3-Clause "New" or "Revised" License
26 stars 7 forks source link

Using Dynamic Buffer for WorldUniforms and Seaweeds #17

Open shaoboyan opened 5 years ago

shaoboyan commented 5 years ago

Currently, Aquarium using instance rendering to config different WorldUniforms and Seaweed moves. Maybe dynamic buffer offest is a option solution.

JiangYizhou commented 5 years ago

DBO was only implemented for fish models, the other models including generic model, seaweed model, inner model and outside model. The option can be add to toggle, so that instanced draw and dbo can be easily selected. We should create vertex shaders for both dbo and instanced draw as well.