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

大约有 220 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0038 秒)

101. 微信小游戏动画问题 [ 63%]

...博 QZONE 微信 Laya_Aaron 赞同来自: material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; Laya.URL.basePath = "https://XXXX.com";//请把XXXX换成自己的真实网址; //在此之下,再使用load加载资源,都会自动加入URL网址...

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

102. Effect材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 62%]

...材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ![](img/1.gif)(图1)

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

103. Unlit材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 62%]

...Unlit材质 var material2 = new Laya.UnlitMaterial(); //加载纹理 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` ![](img/1.png)(图1...

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

104. Unlit材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 62%]

...Unlit材质 var material2 = new Laya.UnlitMaterial(); //加载纹理 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture){ //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` ![](img/1.png)(图1)...

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

105. Effect材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 62%]

...材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ![](img/1.gif)(图12)

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

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

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

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

107. 场景环境反射(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

108. 场景环境反射(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

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

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

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

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