摘要: // 初始化顶点索引 //矩形要转换为两个三角形进行渲染,所以是6个顶点 //使用顶点索引是为了减少发送给GPU的数据,6个顶点中有两个是重复的 //indices = [0,1,2,1,3,2] initQuadIndices(indices) { let count = indices.leng 阅读全文
posted @ 2021-07-23 18:07 玄离gg 阅读(849) 评论(0) 推荐(0)