大约有 244 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0056 秒)
Laya_社区(111) Laya2.0_文档(51) Laya3.0_api(41) Laya_示例(22) Laya3.0_文档(9) Laya2.0_api(5) laya_api(4) Laya2.0_示例(1)
...图的预加载: {url: "res/heightMap.png", clas:Texture2D, priority:1, params:[true]} 场景中初始化MeshTerrainSprite3D: //通过场景中子父级节点寻找可行走区域网格模型 var meshSprite3D:MeshSprite3...
来源: Laya_社区 发布时间: 20170505
...otate(new Laya.Vector3(-90, 0, 0), false, false); })); //加载纹理 Laya.Texture2D.load("res/threeDimen/pbr/jinshu.jpg", Laya.Handler.create(null, function(tex) { //实例PBR材质 var pbrMat = new Laya.PBRStandardMaterial(); //开启该材质的反射 pbrMat.enableReflection = true; //设置材...
来源: Laya2.0_文档 发布时间: 20210715
...量高点,反射效果更明显 pbrMat.metallic = 1; //加载纹理 Laya.Texture2D.load("res/threeDimen/pbr/jinshu.jpg", Handler.create(null, function(tex){ //pbrMat.albedoTexture = tex; teapot.meshRenderer.material = pbrMat; })); ``` (图5)
来源: Laya2.0_文档 发布时间: 20210715
...a.StandardMaterial(); //漫反射贴图 fishmaterial.diffuseTexture = Laya.Texture2D.load("fish/denglongyu/denglongyu1.jpg"); fish.meshRender.material = fishmaterial; fish.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); fish.transform.localPosition = new Laya.Vector3(0,1,0); fish.transfo...
来源: Laya_社区 发布时间: 20170918
...二维纹理贴图 material.albedoTexture = Laya.Texture2D.load(PathConst.material + name + ".png"); material.renderMode = Laya.BlinnPhongMaterial.RENDERMODE_OPAQUE; //为box模型赋材质 ...
来源: Laya_社区 发布时间: 20180519
...定添加到哪个大纹理。 //使用示例 const textures = [texture1, texture2, texture3]; const successCount = atlasManager.addTextures(textures); console.log(`成功添加 ${successCount} 个纹理`); const urls = [ "resources/ui/button.png", "resources/ui/panel.png", "resources/ui/icon.png" ]...
来源: Laya3.0_文档 发布时间: 20260131
... = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/freegeek logo 0418 yuanjiao Ss.png"); box.meshRender.material = material; Laya.loader.create("cj\cj-default001.lm",Laya.Handler.create(this,this.onCreateComplete)); function o...
来源: Laya_社区 发布时间: 20180427
...Texture Memory(M_AllTexture)6.2 All Texture Count(C_AllTexture)6.3 Texture2D Memory(M_Texture2D)6.4 Texture2D Count(C_Texture2D)6.5 TextureCube Memory(M_TextureCube)6.6 TextureCube Count(C_TextureCube)6.7 Texture3D Memory(M_Texture3D)6.8 Texture3D Count(C_Texture3D)6....
来源: Laya3.0_文档 发布时间: 20260128
...r materials = new Laya.StandardMaterial(); materials.diffuseTexture = Laya.Texture2D.load("fish/denglongyu/denglongyu1.jpg"); layaMonkey.meshRender.materials =materials; 这个就是加贴图的代码啊。我看了下lh文件。文件里没有meshRender.materials 附件 : --> demo.rar 2017-12-11 ...
来源: Laya_社区 发布时间: 20171211
... = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/freegeek logo 0418 yuanjiao Ss.png"); box.meshRender.material = material; Laya.loader.create("cj\cj-default001.lm",Laya.Handler.create(this,this.onCreateComplete)); function o...
来源: Laya_社区 发布时间: 20180427