大约有 86 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0033 秒)
..., Handler.create(null, function(tex){ //pbrMat.albedoTexture = tex; teapot.meshRenderer.material = pbrMat; })); ``` (图5)
来源: Laya2.0_文档 发布时间: 20210715
...(null, function(tex:Texture2D):void { //pbrMat.albedoTexture = tex; teapot.meshRenderer.material = pbrMat; })); ``` (图5)
来源: Laya2.0_文档 发布时间: 20210715
...set = tilingOffset; //设置材质 plane.meshRenderer.material = planeMat; //平面添加物理碰撞体组件 var planeStaticCollider = plane.addComponent(Laya.PhysicsCollider); //创建盒子形状碰撞器 ...
来源: Laya_社区 发布时间: 20201120
...10, 10, 0, 0); //板的画面的渲染材质 plane.meshRenderer.material = planeMat; //创建球 this.addSphere(); } //添加球体 addSphere(){ let radius = 0.5; let sphere = this.scene.addChild(new Laya.MeshS...
来源: Laya_社区 发布时间: 20191009
...ilter.png) 1. Mesh - Mesh Renderer  1. Materials - Size - Element 2. Lightmap Static - Lightmaps - Baked Lightmap - Lightmap Index - Tiling X - Tiling Y - Offset X - Offset Y - Skinned Mesh Renderer  { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:Sprite3D = this.findChild(monkey,"bonepoint"); //将盒子精灵添加到找到的骨骼节点上 bonePoint&&bonePo...
来源: Laya2.0_文档 发布时间: 20210715
...andler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:Sprite3D = this.findChild(monkey,"bonepoint"); //将盒子精灵添加到找到的骨骼节点上 bonePoint&&bonePo...
来源: Laya2.0_文档 发布时间: 20210714
...his, function(tex:Texture2D):void { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monkey:Sprite3D = res.getChildByName("LayaMonkey") as Sprite3D; //查找节点 var bonePoint:Sprite3D = findChild(monkey,"bonepoint"); //将盒子精灵添加到找到的骨骼节点上 b...
来源: Laya2.0_文档 发布时间: 20210714
...rial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1.meshRenderer.material = earthMat; })); ``` 效果如下(图3): (图3) #### 4. 网格加载 单个网格加载使用的 Mesh.load 方法。 ```typescript //加载Mesh Laya.Mesh.load("res/threeDimen/skinMo...
来源: Laya2.0_文档 发布时间: 20210715
...rial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1.meshRenderer.material = earthMat; })); ``` 效果如下(图3): (图3) #### 4. 网格加载 单个网格加载使用的 Mesh.load 方法。 ```typescript //加载Mesh Laya.Mesh.load("res/threeDimen/skinMo...
来源: Laya2.0_文档 发布时间: 20210715