大约有 24 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0019 秒)
... = 1; indices[index++] = 2; indices[index++] = 3; const declaration = Laya.VertexMesh2D.getVertexDeclaration(["POSITION,UV"], false)[0]; const mesh2D = Laya.Mesh2D.createMesh2DByPrimitive([vertices], [declaration], indices, Laya.IndexFormat.UInt16, [{ length: indices.length, start: 0 }]); return mes...
来源: Laya3.0_文档 发布时间: 20251010
...x。 在自定义材质中,声明attributeMap中需要写死a_WorldMat:VertexMesh.Mesh_WORLDMATRIX_ROW0,这样在shader中就可以接收到参数传入的矩阵。如图3所示。  (图3) 按上面的步骤完成后,在顶点shaderVS中就可以对应使用了,使用...
来源: Laya2.0_文档 发布时间: 20210714
... 材质在切换到在Instance渲染时,这三个槽位占用了顶点 VertexMesh.MESH_CUSTOME0,VertexMeshMESH_CUSTOME1,VertexMesh.MESH_CUSTOME2。 uniform缓冲区使用时需要注意,在低端手机上过大的数据可能存在uniform超出的风险。 Copyright ©Layabox 2025 all right ...
来源: Laya3.0_文档 发布时间: 20251010
... = 1; indices[index++] = 2; indices[index++] = 3; const declaration = Laya.VertexMesh2D.getVertexDeclaration(["POSITION,UV"], false)[0]; const mesh2D = Laya.Mesh2D.createMesh2DByPrimitive([vertices], [declaration], indices, Laya.IndexFormat.UInt16, [{ length: indices.length, start: 0 }]); return mes...
来源: Laya3.0_文档 发布时间: 20251010