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

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

361. 3D两个平面拼接的贴图直接会有明显的接缝 [ 62%]

...是纹理采样使用了线性采样的原因的,2D的纹理可以使用Texture.isLinearSampling = false;来关闭线性采样,3d的纹理怎么关闭,下面是单个平面的创建代码   var plane: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(1 , 1, 1, 1))) as Laya.MeshSprite3D...

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

362. drawToCanvas转出图片与游戏内显示颜色差距过大 [ 62%]

...Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? Texture图片能否进行翻转? 求高人分享使用protobuff框架的游戏demo(TS版本或AS版本的) 成都雨墨游戏 求 laya 程序开发人员 btn 鼠标移动上去默认文本颜色是绿色,我想换成...

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

363. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 62%]

...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; } ``` ##### 初始化自定义Shader > 导入着色器代码 ```javasc...

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

364. ShaderPass介绍(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 62%]

...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; } ``` ##### 初始化自定义Shader > 导入着色器代码 ```javasc...

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

365. 切换位图,点击图片距离容器的区域也会触发点击事件 [ 62%]

...手引导的抠图透明区域为黑色,其它机型都是正常的。 Texture图片能否进行翻转? Animation如何加点击事件 关于遍历产生的sprite的点击事件,急,大神帮看哈 求指点3d射线碰撞和UI点击穿透的问题 ui list 里面的元素不能点击两次 ...

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

366. 如何获取Animation组件加载的图集中的单个图片的宽高 [ 62%]

...在哪? Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 Texture图片能否进行翻转? IDE1.7.8 json图集加载问题 Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? 如何设置Sprite的宽高和点击区域? 图集打包找不到图集...

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

367. 分享一个Shader版的CoolDown实现 [ 62%]

...家有兴趣的看看 正常渲染效果   alpha遮罩   用法: var texture: Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.sta...

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

368. TypeError: Cannot set property 'material' of undefined [ 61%]

...Materials/Materials.lmat") as Laya.UnlitMaterial;         var unlitTexture:Laya.Texture2D = Laya.Loader.getRes("Images/BG_PopWindow.png") as Laya.Texture2D; material.albedoTexture = unlitTexture; this.unit3D.meshRenderer.material = material; 附件 : --> 2019-09-07 添加评论 免费帖 -->...

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

369. 仅在Android微信小游戏下图片错乱 [ 61%]

...游戏:HTMLDivElement的使用 2.1.1.1引擎微信小游戏掉帧严重 Texture图片能否进行翻转? 2.2.0beta4 发布微信小游戏,安卓设备加载场景黑屏 matter中layasprite怎么改变图片大小? 问题状态 最新活动: 2018-06-10 11:35 浏览: 2239 关注: 1 人 xxxxxxx...

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

370. 同一类型光源互斥的问题报告 [ 61%]

...射 material.albedo = new Laya.Vector4(0.8, 0.8, 0.8, 0); material.diffuseTexture = Laya.Texture2D.load("images/bg03.png"); box.meshRender.material = material; //平面 var plane = sprite3D.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(15, 15, 1, 1))); plane.transform.position = new Laya.Vector3...

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