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

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

591. 通过canvas的缩放来实现清晰度是什么意思呢? [ 69%]

...tandardMaterial();                     material.diffuseTexture = Texture2D.load("res/test4.png");   sphere.meshRender.material = material;   test4.png是一张1024*512的图,我想提高贴图的清晰度 有人说可以通canvas缩放来实现 具体怎么做? 不用Textu...

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

592. 材质-BlinnPhong-法线贴图 [ 69%]

...material = meshSprite3D.meshRender.material; //法线贴图 material.normalTexture = Laya.Texture2D.load(this.normalMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { monster1.transform.rotate(this.rotation); monster2.transform.rotate(this.rotation); }); }class BlinnPhong_NormalMap { private ...

来源: Laya_示例 发布时间: 20260303

593. laya2.0微信开发域无法显示 [ 69%]

...a2.0提供了WXOpenDataViewer来做开放域显示。 以前1.0的new Laya.Texture(sharedCanvas)的构建方式不行了,修改方案可以参考以下WXOpenDataViewer的Texture创建方案。 2018-12-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

594. laya.core.js报错:value._addReference is not a function [ 69%]

...ght (in promise) TypeError: value._addReference is not a function     at Texture.<anonymous> (laya.core.js:15911)     at Texture.__proto._onLoaded (laya.core.js:15752)     at EventHandler.__proto.runWith (laya.core.js:1410)     at ResInfo.__proto.event (laya.core.js:1166)     at Load...

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

595. laya.map.GridSprite [ 69%]

...但是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...

来源: laya_api 发布时间: 20170929

596. RenderTexture: unkonw depth format. [ 69%]

RenderTexture: unkonw depth format. webGL模式下, 项目一直报这个调试信息,请解析下原因,分析下大概是什么问题导致的。 附件 : --> HB_laba_10.rar 2018-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

597. 关联shader的uniform(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 69%]

...varying vec2 v_Texcoord0; varying vec3 v_Normal; uniform sampler2D u_AlbedoTexture; void main() { vec4 albedoTextureColor = vec4(1.0); albedoTextureColor = texture2D(u_AlbedoTexture, v_Texcoord0); gl_FragColor=albedoTextureColor; } ``` ### 1.定义自定义属性 **Material** 是所有的材质的...

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

598. laya.spine.js问题以及spine.core.js问题 [ 69%]

...tus   }, (state, responseText) => { this.errors[path] = `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`; if (error) error(path, `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`); this.toLoad--; this.loaded++; }); 附件 : --> 2022-01-22 添加评...

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

599. 解决Laya导出时裁剪空白域导致渲染时错位的bug [ 69%]

...染时错位的bug 在2.3.0如果你用了裁剪空白区域(可以参阅texturepacker的裁剪空白区域功能,一样的原理),在你对显示单位设置锚点后,显示有很大概率会错位。 官方Git:https://github.com/layabox/LayaAir/tree/master/src/layaAir/laya(每周去...

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

600. LayaAir3.0中添加官网Demo的Png图片,出现背景无法透底 [ 68%]

...IDE后,选中想要修改的资源(可多选),在属性面板中将Texture Type属性改为Sprite Texture,也可以解决。以上是2DUI资源的解决方法。 2023-01-30 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加...

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