AlphaPlayer icon indicating copy to clipboard operation
AlphaPlayer copied to clipboard

GLES20.glVertexAttribPointer( aTextureHandle, 3, GLES20.GL_FLOAT, false, TRIANGLE_VERTICES_DATA_STRIDE_BYTES, triangleVertices )

Open sixiangjun opened this issue 4 years ago • 1 comments

如上代码,步长为什么是3?我设置成2运行也没有问题

sixiangjun avatar Dec 03 '20 07:12 sixiangjun

如上代码,步长为什么是3?我设置成2运行也没有问题

因为opengl里每个顶点都是三维坐标,但是目前用到的只有x和y,所以其实你步长设置为2也没啥问题。后面这一块我们会继续优化,请持续关注。

aceprcet avatar Dec 04 '20 10:12 aceprcet