大约有 77 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0032 秒)
...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概述 ###### *version :2.1.0 Update:2019-5-25* 纹理是增强计算机生成三维图像的真实感的有力工具。在没有纹理时,你的三维图像往往是像发亮的塑料(图1)。使用纹理后,能使你的网格、粒子、和界面更生动如图2。纹理是...
来源: Laya2.0_文档 发布时间: 20210714
# Texture2D概述 ###### *version :2.1.0 Update:2019-5-25* 纹理是增强计算机生成三维图像的真实感的有力工具。在没有纹理时,你的三维图像往往是像发亮的塑料(图1)。使用纹理后,能使你的网格、粒子、和界面更生动如图2。纹理是...
来源: Laya2.0_文档 发布时间: 20210715
# Texture2D概述 ###### *version :2.1.0 Update:2019-5-25* 纹理是增强计算机生成三维图像的真实感的有力工具。在没有纹理时,你的三维图像往往是像发亮的塑料(图1)。使用纹理后,能使你的网格、粒子、和界面更生动如图2。纹理是...
来源: Laya2.0_文档 发布时间: 20210715
分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 因为要用到的贴图并不是固定的,所以有这样的需求,之前问过,不过暂时没有结果:https://ask.layabox.com/question/5622 看不太懂官方的源码,所以用...
来源: Laya_社区 发布时间: 20170718
# Texture2D的GPU纹理压缩的使用 ###### *version :2.1.0 Update:2019-5-25* 在2.0正式版中已经支持纹理这个功能了。Unity导出时,在工具面板勾选平台对应的平台导出即可。 (图1) **IOS 与 Android** 支持纹理压缩功能,由于安卓和IOS的...
来源: Laya2.0_文档 发布时间: 20210714
# Texture2D的GPU纹理压缩的使用 ###### *version :2.1.0 Update:2019-5-25* 在2.0正式版中已经支持纹理这个功能了。Unity导出时,在工具面板勾选平台对应的平台导出即可。 (图1) **IOS 与 Android** 支持纹理压缩功能,由于安卓和IOS的...
来源: Laya2.0_文档 发布时间: 20210715
# Texture2D的GPU纹理压缩的使用 ###### *version :2.1.0 Update:2019-5-25* 在2.0正式版中已经支持纹理这个功能了。Unity导出时,在工具面板勾选平台对应的平台导出即可。 (图1) **IOS 与 Android** 支持纹理压缩功能,由于安卓和IOS的...
来源: Laya2.0_文档 发布时间: 20210714
... material:BlinnPhongMaterial = new BlinnPhongMaterial(); //漫反射贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = ma...
来源: Laya2.0_文档 发布时间: 20210714
...] loader http://localhost:18090/resources/chest_bg.png (4) [6, Texture, 7, Texture2D] loader http://localhost:18090/atlas/comp/img_bg.png (4) [6, Texture, 7, Texture2D] close --------------------------------gc 6000----------------------------------- loader http://localhost:18090/resources/chest_bg.p...
来源: Laya_社区 发布时间: 20240109