webai-community / aquarium

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

Match 4 bytes alignment of Dawn Metal Backend #16

Closed JiangYizhou closed 5 years ago

JiangYizhou commented 5 years ago

Remove dummy paddings of vertex buffer and index buffer. float is already a multiple of 4 bytes while unsigned short is 2 bytes.

Match vec4 alignment of std 140 TimeBuffer of seaweed model should match vec4 alignment of std 140.

World uniforms of outside model is not big enough, and should match the size in vertex shader.

JiangYizhou commented 5 years ago

This patch fixes #13 #14 #15 .