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

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

21. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 58%]

...() { //所有的attributeMap属性 var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0, 'a_Texcoord0': Laya.VertexMesh.MESH_TEXTURECOORDINATE0 }; //所有的uniform属性 var uniformMap = { 'u_MvpMatrix': Laya.Shader3D.PERIOD_SPRITE, 'u_WorldMa...

来源: Laya2.0_文档 发布时间: 20210715

22. ShaderPass介绍(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 56%]

...() { //所有的attributeMap属性 var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0, 'a_Texcoord0': Laya.VertexMesh.MESH_TEXTURECOORDINATE0 }; //所有的uniform属性 var uniformMap = { 'u_MvpMatrix': Laya.Shader3D.PERIOD_SPRITE, 'u_WorldMa...

来源: Laya2.0_文档 发布时间: 20210714

23. 如何动态绘制自定义模型? [ 53%]

...r); const indices = new Uint16Array(faceArr); var vertexDeclaration = Laya.VertexMesh.getVertexDeclaration("POSITION,NORMAL"); return new Laya.MeshSprite3D(Laya.PrimitiveMesh._createMesh(vertexDeclaration, vertices, indices)); } 要加UV的话,自己添吧。 关键是Laya.PrimitiveMesh....

来源: Laya_社区 发布时间: 20180522

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

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

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

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

26. drawMeshInstance渲染指令的使用说明(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 41%]

...x。 在自定义材质中,声明attributeMap中需要写死a_WorldMat:VertexMesh.Mesh_WORLDMATRIX_ROW0,这样在shader中就可以接收到参数传入的矩阵。如图3所示。 ![img](img/3.png) (图3) 按上面的步骤完成后,在顶点shaderVS中就可以对应使用了,使用...

来源: Laya2.0_文档 发布时间: 20210714

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

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

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

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

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