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

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

621. laya.ani.bone.Skeleton [ 68%]

...rite  templet : Templet[read-only] 得到动画模板的引用 Skeleton texture : Texture 设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,...

来源: Laya2.0_api 发布时间: 20190513

622. layaair1.7.9 beta版,给图片加上颜色滤镜,效果有问题 [ 68%]

...,谢谢了var spr:laya.display.Sprite = new laya.display.Sprite(); spr.texture = tx; Laya.stage.addChild(spr); spr.x = 300; spr.y = 100; var color:Array = ; color.push( 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 1, 0); var filter:ColorFilter = new ColorFilter(color); spr.filters =...

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

623. 关联shader的uniform(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 68%]

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

624. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 68%]

... Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {             material.albedoTexture = tex;         }));         material.albedoColor = new Laya.Vector4(1.0, 1.0, 1.0, ...

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

625. 关联shader的uniform(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 68%]

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

626. laya.map.GridSprite [ 68%]

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

来源: laya_api 发布时间: 20170929

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

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

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

628. 尽量保证同一个面板中的所有资源用一个图集 VS 零散并使用cacheAs=bitmap [ 68%]

...散并cache后,引擎会提交cache后的bitmap,还是所有零散的texture一并提交? 2017-07-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: zhongguo168a cache后,会将所...

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

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

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

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

630. RenderTexture: unkonw depth format. [ 68%]

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

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