大约有 458 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)
Laya_社区(258) Laya3.0_api(91) Laya2.0_文档(60) Laya_示例(22) Laya3.0_文档(10) Laya2.0_api(10) laya_api(7)
...创建了 Textture2D如何对其进行宽高赋值 你好,我在创建了Texture2D后 ,我想对其进行宽高赋值,我发现没有相关的方法,而width和hight都是只读的。求解答。 另外我想设置像素,我看到可以getPixels ,但没有setPixels也同样求解。 我...
来源: Laya_社区 发布时间: 20190313
...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_示例 发布时间: 20251130
...复 专注前端三十年 赞同来自: 无雨之地 解决方法,设置Texture2D的filterMode (texture.bitmap as Laya.Texture2D).filterMode = Laya.BaseTexture.FILTERMODE_POINT; 那么问题来了,如何设置所有的默认是这个值呢 2020-12-10 1 0 分享 微博 QZONE 微信 专注前...
来源: Laya_社区 发布时间: 20201201
3d的纹理无法释放 如图,3d纹理类型是texture2d,不能执行disposebitmap方法 另外,官方给出的 var resouce = Laya.loader.getRes(resourceName); if(resouce) resouce.destroy(); 方法也无法释放内存,亲测,native上,系统内存会不断增长,直到崩溃,...
来源: Laya_社区 发布时间: 20181219
...图的预加载: {url: "res/heightMap.png", clas:Texture2D, priority:1, params:[true]} 场景中初始化MeshTerrainSprite3D: //通过场景中子父级节点寻找可行走区域网格模型 var meshSprite3D:MeshSprite3...
来源: Laya_社区 发布时间: 20170505
...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
...只是不知道怎么把绘制出来的新纹理变成3D模型能识别的texture2d的贴图? 2018-06-05 0 0 分享 微博 QZONE 微信 伐木工人 赞同来自: 没必要用laya2d来做,可以直接用原生canvas-2d来叠加图层产生新图片,然后转base64字符串,然后转HTMLImage...
来源: Laya_社区 发布时间: 20180605
...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
...//新建材质 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
... 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