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

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

121. 3D中如何限制角色的行走区域? [ 61%]

...图的预加载:                {url: "res/heightMap.png", clas:Texture2D, priority:1, params:[true]}        场景中初始化MeshTerrainSprite3D:               //通过场景中子父级节点寻找可行走区域网格模型               var meshSprite3D:MeshSprite3...

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

122. 场景环境反射(TypeScript-3D基础(TS)-LayaAir3D之场景渲染配置) [ 61%]

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

123. 场景环境反射(JavaScript-3D基础(JS)-LayaAir3D之场景渲染配置) [ 61%]

...量高点,反射效果更明显 pbrMat.metallic = 1; //加载纹理 Laya.Texture2D.load("res/threeDimen/pbr/jinshu.jpg", Handler.create(null, function(tex){ //pbrMat.albedoTexture = tex; teapot.meshRenderer.material = pbrMat; })); ``` ![](img/5.png)(图5)

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

124. 3D模式下使用Tween使模型移动如何写法 [ 61%]

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

125. 3D材质更换 [ 61%]

...二维纹理贴图             material.albedoTexture = Laya.Texture2D.load(PathConst.material + name + ".png");                      material.renderMode = Laya.BlinnPhongMaterial.RENDERMODE_OPAQUE;             //为box模型赋材质           ...

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

126. 动态图集 · LayaAir3.4 · 引擎文档 · LAYABOX [ 60%]

...定添加到哪个大纹理。 //使用示例 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

127. 加载不了模型 [ 60%]

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

128. 统计信息 · LayaAir3.4 · 引擎文档 · LAYABOX [ 60%]

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

129. lh文件切换贴图 [ 60%]

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

130. 3D加载不了 [ 60%]

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