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

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

121. 材质-BlinnPhong-漫反射贴图 [ 71%]

...Laya.BlinnPhongMaterial(); //漫反射贴图 material.albedoTexture = Laya.Texture2D.load("../../res/threeDimen/texture/earth.png"); earth2.meshRender.material = material; Laya.timer.frameLoop(1, this, function () { earth1.transform.rotate(this.rotation, false); earth2.transform.rotate(this.rotation...

来源: Laya_示例 发布时间: 20240929

122. 3d的纹理无法释放 [ 71%]

3d的纹理无法释放 如图,3d纹理类型是texture2d,不能执行disposebitmap方法 另外,官方给出的   var resouce = Laya.loader.getRes(resourceName); if(resouce) resouce.destroy(); 方法也无法释放内存,亲测,native上,系统内存会不断增长,直到崩溃,...

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

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

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

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

124. TypeError: Cannot set property 'material' of undefined [ 70%]

...erials.lmat") as Laya.UnlitMaterial;         var unlitTexture:Laya.Texture2D = Laya.Loader.getRes("Images/BG_PopWindow.png") as Laya.Texture2D; material.albedoTexture = unlitTexture; this.unit3D.meshRenderer.material = material; 附件 : --> 2019-09-07 添加评论 免费帖 --> 分享 微...

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

125. 图层叠加的实现 [ 70%]

...只是不知道怎么把绘制出来的新纹理变成3D模型能识别的texture2d的贴图? 2018-06-05 0 0 分享 微博 QZONE 微信 伐木工人 赞同来自: 没必要用laya2d来做,可以直接用原生canvas-2d来叠加图层产生新图片,然后转base64字符串,然后转HTMLImage...

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

126. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 70%]

...var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, ...

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

127. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 70%]

...//新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设...

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

128. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 70%]

... Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {             material.albedoTexture = tex;         }));         material.albedoColor = new Laya.Vector4(1.0, 1.0, 1.0, ...

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

129. 通过canvas的缩放来实现清晰度是什么意思呢? [ 70%]

...erial();                     material.diffuseTexture = Texture2D.load("res/test4.png");   sphere.meshRender.material = material;   test4.png是一张1024*512的图,我想提高贴图的清晰度 有人说可以通canvas缩放来实现 具体怎么做? 不用Texture2D.load(...

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

130. 材质-BlinnPhong-高光贴图 [ 69%]

....skinnedMeshRender.materials[i]; //高光贴图 mat.specularTexture = Laya.Texture2D.load(this.specularMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { dude1.transform.rotate(this.rotation); dude2.transform.rotate(this.rotation); }); }class BlinnPhong_SpecularMap { private scene:Laya.Scene;...

来源: Laya_示例 发布时间: 20240929