Closed JiangYizhou closed 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.
This patch fixes #13 #14 #15 .
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.