大约有 232 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
...HTMLImageElement Laya.loader.fetch( url,"image" ).then((res)=>{ //创建Texture2D var t2d: Texture2D = new Texture2D(res.width, res.height, TextureFormat.R8G8B8A8, false, false, true); t2d.setImageData(res, true, false); //创建Texture var texture: Texture = new Texture(t2d); let sp2:Sprite = ne...
来源: Laya3.0_文档 发布时间: 20230303
texture2D 设置 wrapModeU 与 wrapModeV 无效 (关于素材要求的问题) 如果是Laya.Texture2D.load的加载方式,默认加载的是texture2D,会自动设置wrapModeU和wrapModeV为平铺,在使用官方的纹理平铺案例的图片时,发现是没问题的,而使用自己的...
来源: Laya_社区 发布时间: 20200523
Texture如何转换成Texture2D有人搞过吗 Texture如何转换成Texture2D有人搞过吗 2018-12-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 AzureonTang 赞同来自: 1569322907用户 Texture类型有...
来源: Laya_社区 发布时间: 20181221
....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_示例 发布时间: 20251130
...al = new CustomTerrainMaterial(); customMaterial.setSplatAlphaTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/splatalpha 0.png")); customMaterial.setLightMapTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/Assets/Scenes/Level/XunLongShi/Lightmap-0_comp_light.pn...
来源: Laya_示例 发布时间: 20251130
...n () { // image.onload = null; // image.onerror = null; // var data = Laya.Texture2D._parse(image); // data._url = "sdfasf" // _this.onLoaded(data); img=HTMLImage.create(image.width,image.height,1); img.loadImageSource(image,true); img._setCreateURL(url); _this.onLoaded(img); }; var url = _this.arra...
来源: Laya_社区 发布时间: 20210809
分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 因为要用到的贴图并不是固定的,所以有这样的需求,之前问过,不过暂时没有结果:https://ask.layabox.com/question/5622 看不太懂官方的源码,所以用...
来源: Laya_社区 发布时间: 20170718
...只是不知道怎么把绘制出来的新纹理变成3D模型能识别的texture2d的贴图? 2018-06-05 0 0 分享 微博 QZONE 微信 伐木工人 赞同来自: 没必要用laya2d来做,可以直接用原生canvas-2d来叠加图层产生新图片,然后转base64字符串,然后转HTMLImage...
来源: Laya_社区 发布时间: 20180605
Texture2D.setPixels会导致图片质量变差了,获取原生的pixels没有进行改动。怎么回事呢? 代码如下: var url = "res/textures/marry_frame_005.png"; url= Laya.URL.formatURL(url); var imageSource=new Laya.Browser.window.Image(); var thisObj = this; var onload=function (){ v...
来源: Laya_社区 发布时间: 20190923
...Sprite3D.meshRender.material; //法线贴图 material.normalTexture = Laya.Texture2D.load(this.normalMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { monster1.transform.rotate(this.rotation); monster2.transform.rotate(this.rotation); }); }class BlinnPhong_NormalMap { private scene:Laya.Scen...
来源: Laya_示例 发布时间: 20251130