• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 163 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)

31. 3D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 71%]

...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

32. Unity导出的光照贴图带有Alpha但Shader中没有使用,Laya是否在加载PNG的时候有预乘Alpha? [ 71%]

... 例如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

33. texture is not defined [ 71%]

...错 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

34. Image 的 texture 和skin 的区别 [ 71%]

...引擎有什么区别? layaair与layabox的区别 Texture如何转换成Texture2D有人搞过吗 view和Dialog区别 关于打包图集时的图片默认属性与repeat的区别 Dialog和View用destroy和Laya.stage.removeChild有什么区别? 问题状态 最新活动: 2018-03-01 10:01 浏览: 225...

来源: Laya_社区 发布时间: 20180228

35. Unity转换工具导出时报错 [ 71%]

...示以下错误: MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'. 转化工具是最新版本。 Unity版本2018.2.0f2 2018-07-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya...

来源: Laya_社区 发布时间: 20180728

36. 2.x引擎项目升级说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 70%]

...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

37. EffectMaterial在真机上texture为空 [ 70%]

...双手6根手指不停点击出现项目崩溃问题 Texture如何转换成Texture2D有人搞过吗 laya2.6阴影,在oppo小游戏真机上不显示 打包问题,在IDE 能够正常调试,打包在手机上便什么也木有,demo如下,请帮忙测试一下哦 问题状态 最新活动: 20...

来源: Laya_社区 发布时间: 20181207

38. BlinnPhong材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 70%]

...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; ``` ![](img/4.png)(图4) ##...

来源: Laya2.0_文档 发布时间: 20210715

39. BlinnPhong材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 70%]

...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; ``` ![](img/4.png)(图4) ##...

来源: Laya2.0_文档 发布时间: 20210714

40. matter中更换texture [ 70%]

...片的事件,需要点击两次才能更换图片 Texture如何转换成Texture2D有人搞过吗 UI皮肤怎么动态设置图片资源,有时候需要更换整个文件夹的图片,有什么好的方法么 如果更换Sprite图片 Texture的getPixels()在Android下调用提示is not a function ...

来源: Laya_社区 发布时间: 20171024