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

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

91. 关联shader的uniform(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 36%]

...图 customMaterial.albedoTexture = texture; })); //设置材质 layaMonkey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ``` ####

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

92. 多种碰撞器形状(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 35%]

...sh.createCone(raidius, height)); scene.addChild(cone); //设置材质 cone.meshRenderer.material = mat4; //设置位置 cone.transform.position = new Laya.Vector3(Math.random() * 4 - 2, 10, Math.random() * 4 - 2); var rigidBody = cone.addComponent(Laya.Rigidbody3D); //创建球型碰撞器 var coneS...

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

93. 实体组件系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

...oid { //碰撞开始后,物体改变颜色 (this.owner.getComponent(Laya.MeshRenderer).material as Laya.BlinnPhongMaterial).albedoColor = new Laya.Color(0.0, 1.0, 0.0, 1.0);//绿色 } /** * 发生持续物理碰撞时的3D物理碰撞器事件(不适用2D),也就是碰撞生命周期内的...

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

94. 多种碰撞器形状(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 33%]

...sh.createCone(raidius, height)); scene.addChild(cone); //设置材质 cone.meshRenderer.material = mat4; //设置位置 cone.transform.position = new Laya.Vector3(Math.random() * 4 - 2, 10, Math.random() * 4 - 2); var rigidBody:Laya.Rigidbody3D = cone.addComponent(Laya.Rigidbody3D); //创建球型...

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

95. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 33%]

...) { customMaterial.albedoTexture = texture; })); //设置材质 layaMonkey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ``` ![](img/1.gif) ### 2. stateMap 在 `subShader` 添加通...

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

96. 多种碰撞器形状(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 33%]

...sh.createCone(raidius, height)); scene.addChild(cone); //设置材质 cone.meshRenderer.material = mat4; //设置位置 cone.transform.position = new Vector3(Math.random() * 4 - 2, 10, Math.random() * 4 - 2); var rigidBody:Rigidbody3D = cone.addComponent(Rigidbody3D); //创建球型碰撞器 var con...

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

97. rigidBody.applyForce 物体不会移动 [ 33%]

..., function (tex: Laya.Texture2D) { material.albedoTexture = tex; }) ); box.meshRenderer.material = material; //设置文本显示框位置 this.text.x = Laya.stage.width / 2 - 50; //显示文本显示框 this.text = new Laya.Text(); this.text.overflow = Laya.Text.HIDDEN; this.text.color = "#FFFFFF";...

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

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

...) { customMaterial.albedoTexture = texture; })); //设置材质 layaMonkey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ``` ![](img/1.gif) ### 2. stateMap 在 `subShader` 添加通...

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

99. 性能统计与优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 32%]

...形面数越多,对于性能的影响也越大。 在3D渲染中,每个MeshRenderer都由多个三角形面组成。因此,在开发中应尽量减少需要渲染的三角形面数,以提高游戏的性能表现。如图6-1所示。 (图6-1) 要减少需要渲染的三角形面数Triangl...

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

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

...) { customMaterial.albedoTexture = texture; })); //设置材质 layaMonkey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ``` ![](img/1.gif) ### 2. stateMap 在 `subShader` 添加通...

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