• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0019 秒)

1. 2D网格渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...; index[ibIndex + 2] = numSegments; // 顶点声明 var declaration = Laya.VertexMesh2D.getVertexDeclaration(["POSITION,UV"], false)[0]; let mesh2D = Laya.Mesh2D.createMesh2DByPrimitive([vertexs], [declaration], index, Laya.IndexFormat.UInt16, [{ length: index.length, start: 0 }]); return mesh2D; } ...

来源: Laya3.0_文档 发布时间: 20251120

2. 2D精灵光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 86%]

... = 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

3. 3D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 80%]

... 材质在切换到在Instance渲染时,这三个槽位占用了顶点 VertexMesh.MESH_CUSTOME0,VertexMeshMESH_CUSTOME1,VertexMesh.MESH_CUSTOME2。 uniform缓冲区使用时需要注意,在低端手机上过大的数据可能存在uniform超出的风险。 Copyright ©Layabox 2025 all right ...

来源: Laya3.0_文档 发布时间: 20251010

4. 2D光遮挡器与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

... = 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