大约有 308 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0042 秒)
导出场景报错 MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'. LayaExport.DataManager.saveData () LayaExport.DataManager.getData () LayaAir3D.exportResource (Boolean isDebug) (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:427) LayaAir3D.OnGUI () (at Assets/LayaAir3D/L...
来源: Laya_社区 发布时间: 20171208
...。 (图2) #### 3. 纹理加载 加载单个纹理使用Texture2D.load方法。这里我们创建了一个正方体,并且将加载的纹理设置为他的纹理。这个操作实际上和3D简单示例的操作是相同的。 ```typescript //加载纹理 Laya.Texture2D.load("res...
来源: Laya2.0_文档 发布时间: 20210715
...a_Xq 赞同来自: BaseTexture在这个类里你可以看一下里面有对texture2D贴图的参数设置选择你项目适合的!比如使用这个模式 /**寻址模式_不循环。*/ public static const FILTERMODE_TRILINEAR:int = 2; 或者对anisoLevel大小进行设置 filterMode 进行修改 ...
来源: Laya_社区 发布时间: 20181026
...a.StandardMaterial(); //漫反射贴图 fishmaterial.diffuseTexture = Laya.Texture2D.load("fish/denglongyu/denglongyu1.jpg"); fish.meshRender.material = fishmaterial; fish.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); fish.transform.localPosition = new Laya.Vector3(0,1,0); fish.transfo...
来源: Laya_社区 发布时间: 20170918
...var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; 贴图只能选一张吗? 2018-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20180227
... 45, 0), false, false); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####
来源: Laya2.0_文档 发布时间: 20210715
... 45, 0), false, false); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; } } 附件 : --> laya1.rar 2020-10-21 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20201021
...e; void main() { vec4 albedoTextureColor = vec4(1.0); albedoTextureColor = texture2D(u_AlbedoTexture, v_Texcoord0); gl_FragColor=albedoTextureColor; } ``` ### 1.定义自定义属性 **Material** 是所有的材质的基类。Material的_shaderValues:ShaderData 就是材质的属性。ShaderData是...
来源: Laya2.0_文档 发布时间: 20210715
...过转换的FLASH游戏里的方法? 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 问题状态 最新活动: 2018-05-08 20:36 浏览: 1188 关注: 2 人 Yangcy • 2020-05-21 10:19 laya2.0以后的版本怎么使用这个RenderTarget2D 都...
来源: Laya_社区 发布时间: 20180505
...e; void main() { vec4 albedoTextureColor = vec4(1.0); albedoTextureColor = texture2D(u_AlbedoTexture, v_Texcoord0); gl_FragColor=albedoTextureColor; } ``` ### 1.定义自定义属性 **Material** 是所有的材质的基类。Material的_shaderValues:ShaderData 就是材质的属性。ShaderData是...
来源: Laya2.0_文档 发布时间: 20210715