大约有 162 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0051 秒)
...edoColor: { type: Color, default: [1, 1, 1, 1] }, u_AlbedoTexture: { type: Texture2D, options: { define: "ALBEDOTEXTURE" } }, u_NormalTexture: { type: Texture2D, options: { define: "NORMALTEXTURE" } }, u_NormalScale: { type: Float, default: 1.0, range: [0.0, 2.0] }, u_Metallic: { type: Float, defaul...
来源: Laya3.0_文档 发布时间: 20251010
... 例如Mesh-BlinnPhong.ps这个文件中: #ifdef LIGHTMAP finalDiffuse=texture2D(u_LightMap, v_LightMapUV).rgb*2.0; //float exponent = texture2D(u_LightMap, v_LightMapUV).a; //finalDiffuse = texture2D(u_LightMap, v_LightMapUV).rgb; //float ratio = pow(2.0, exponent * 255.0 - (128.0 + 8.0)); //fina...
来源: Laya_社区 发布时间: 20180223
...错 ImageData is not defined? window is not defined Texture如何转换成Texture2D有人搞过吗 LayaNative 预览在Android底下报错 ConchShader is not defined layaair-cmd 编译提示 ReferenceError: primordials is not defined 引用了laya.physics3D.runtime.js后报enum_btConstraintParams_BT...
来源: Laya_社区 发布时间: 20170523
...引擎有什么区别? layaair与layabox的区别 Texture如何转换成Texture2D有人搞过吗 view和Dialog区别 关于打包图集时的图片默认属性与repeat的区别 Dialog和View用destroy和Laya.stage.removeChild有什么区别? 问题状态 最新活动: 2018-03-01 10:01 浏览: 225...
来源: Laya_社区 发布时间: 20180228
...示以下错误: MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'. 转化工具是最新版本。 Unity版本2018.2.0f2 2018-07-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya...
来源: Laya_社区 发布时间: 20180728
...url2 = "xxxxx.png"; var type1 = Laya.Loader.IMAGE; var type2 = Laya.Loader.TEXTURE2D; Laya.loader.load([url1, url2]).then((res:Array<any>)=> { //加载多个,不带类型 }); Laya.loader.load([url1, url2], type).then((res:Array<any>)=> { //加载多个,统一设置类型 }); La...
来源: Laya3.0_文档 发布时间: 20251010
...双手6根手指不停点击出现项目崩溃问题 Texture如何转换成Texture2D有人搞过吗 laya2.6阴影,在oppo小游戏真机上不显示 打包问题,在IDE 能够正常调试,打包在手机上便什么也木有,demo如下,请帮忙测试一下哦 问题状态 最新活动: 20...
来源: Laya_社区 发布时间: 20181207
...cript var material = new Laya.BlinnPhongMaterial(); //漫反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` (图4) ##...
来源: Laya2.0_文档 发布时间: 20210715
...cript var material = new Laya.BlinnPhongMaterial(); //漫反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` (图4) ##...
来源: Laya2.0_文档 发布时间: 20210714
...片的事件,需要点击两次才能更换图片 Texture如何转换成Texture2D有人搞过吗 UI皮肤怎么动态设置图片资源,有时候需要更换整个文件夹的图片,有什么好的方法么 如果更换Sprite图片 Texture的getPixels()在Android下调用提示is not a function ...
来源: Laya_社区 发布时间: 20171024