大约有 315 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0041 秒)
...al: SkyPanoramicMaterial = new SkyPanoramicMaterial(); Texture2D.load("res/jfb.jpg", Handler.create(null, function (tex: Texture2D) { material.panoramicTexture = tex; skymat.material = material; })); 2020-03...
来源: Laya_社区 发布时间: 20200319
...it材质 var material2:UnlitMaterial = new UnlitMaterial(); //加载纹理 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` 。但是实质上Texture就是对Texture2D的再封装,Texture的 `bitmap` 属性就是他所属的Texture2D ,Texture本身是记录了Texture2的uv属性,来实现图集中的单图片显示。 所以...
来源: Laya2.0_文档 发布时间: 20210715
...理 var texture1:Texture=Loader.getRes('apes/monkey0.png') as Texture; var texture2:Texture=Loader.getRes('apes/monkey1.png') as Texture; var texture3:Texture=Loader.getRes('apes/monkey2.png') as Texture; var texture4:Texture=Loader.getRes('apes/monkey3.png') as Texture; //绘制纹理 var box:Sprit...
来源: Laya_社区 发布时间: 20170519
... var material:EffectMaterial = new EffectMaterial(); //加载地球贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` (图12)
来源: Laya2.0_文档 发布时间: 20210715
... 在2D中,图片使用的是`Texture`纹理(注意不是3D中的`Texture2D`)。但是实质上Texture就是对Texture2D的再封装,Texture的 `bitmap` 属性就是他所属的Texture2D ,Texture本身是记录了Texture2的uv属性,来实现图集中的单图片显示。 所以...
来源: Laya2.0_文档 发布时间: 20210715
...Map 怎么生成,用什么工具?或者unity插件名字叫什么 2.Texture2D加载的时候canRead属性怎么设置? 安装官方的加载示例,texuture2d加载后无法设置canRead啊 2018-11-20 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20181120
material材质平铺 建了一个3D的平面模型,用的是Laya.Texture2D.load加载的图片纹理, 然后给它加了一个var material = new Laya.StandardMaterial();材质 material 创建的贴图材质,这样能平铺吗? var plane = this.scene.addChild(new Laya.MeshSprite3D(new Laya.P...
来源: Laya_社区 发布时间: 20180125
... 在2D中,图片使用的是`Texture`纹理(注意不是3D中的`Texture2D`)。但是实质上Texture就是对Texture2D的再封装,Texture的 `bitmap` 属性就是他所属的Texture2D ,Texture本身是记录了Texture2的uv属性,来实现图集中的单图片显示。 所以...
来源: Laya2.0_文档 发布时间: 20210715
又又发现惊天大bug 使用Texture2D.load这个图片报错https://flock.oss-cn-beijing.aliyuncs.com/avatar/2e9c1503-3c16-354c-7c82-4cd8508a1685?x-oss-process=image/resize,h_432,m_lfit 原因_loadTexture2D方法里面解析不出来地址类型,临时解决方案type给个默认值nativeim...
来源: Laya_社区 发布时间: 20221014