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

大约有 11 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0028 秒)

1. 设置tiling/Offset,图片循环模式/wrapMode repeat不生效 (问题未解决,麻烦回复,如已解决会改标题) [ 100%]

...了么,我设置了wrapModeU和wrapModeV,并且确保了加载出来的texture2D,还是无法平铺,而使用官方的那个纹理平铺案例的图片,却是可以的,而就是官方demo中自带的comp.png也无法平铺,不知道对格式要求是什么样 2020-05-23 0 0 分享 微...

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

2. 射线检测-放置物体 [ 95%]

...var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.me...

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

3. 从图集中创建Texture2D问题 [ 92%]

从图集中创建Texture2D问题 我在做物品的掉落渲染,需要用到Texture2D对象。我本以为Texture与Texture2D是一样的,但当我通过Texture2D的load方法获取物品图集中的图片时遇到了问题:获取出的图片不是我某个物品的,而是整个物品图...

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

4. Texture如何转换成Texture2D有人搞过吗 [ 88%]

Texture如何转换成Texture2D有人搞过吗 Texture如何转换成Texture2D有人搞过吗 2018-12-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 AzureonTang 赞同来自: 1569322907用户 Texture类型有...

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

5. android下layabox调用Laya.Texture2D.load报错 [ 81%]

LayaPlayer android下layabox调用Laya.Texture2D.load报错 看源码是WebGL.mainContext为空,请问会是配置问题,还是某种支持问题吗? (PS:: h5浏览器运行是正常的)   报错堆栈: 02-06 14:59:43.858  6545  6658 I LayaBox : alert=http://10.0.1.72/game/dev-loca ... 566...

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

6. laya.resource.Texture2D_API3.0 [ 80%]

...rotected All Inherited Externals Only exported Menu Globals "laya/resource/Texture2D" Texture2D Class Texture2D Texture2D 类用于生成2D纹理。 Hierarchy BaseTexture Texture2D Index Constructors constructor Properties _id destroyedImmediately lock name url uuid DEBUG TEXTURE2D blackTexture erro...

来源: Laya3.0_api 发布时间: 20231115

7. 一个简单的跑酷曲面shader分享 [ 78%]

...rm sampler2D u_MainTex; varying vec2 v_textcoord; void main() { vec4 col = texture2D(u_MainTex, v_textcoord); gl_FragColor = col; } `; var shader: Laya.Shader3D = Laya.Shader3D.add("CustomCurveShader"); var subShader: Laya.SubShader = new Laya.SubShader(attributeMap, uniformMap); shader.addSubShader...

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

8. 射线检测-点击行走 [ 72%]

...var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.me...

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

9. 在2.0中如何将Browser.createElement('canvas')转为可用的Texture [ 68%]

... 如何在chrome console 里模拟canvas点击事件 Texture如何转换成Texture2D有人搞过吗 laya怎么将object转为num,我知道是用paseint,但是格式是怎样的 texture 怎么改变颜色 2.0 怎么样才能将htmlcanvas 的东西 显示在texture上? WebGL报错文本显示有...

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

10. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 52%]

...a.StandardMaterial(); layaMonkey.meshRender.material.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/ui/button.png"); layaMonkey.meshRender.material.transformUV = new Laya.TransformUV(); console.log(layaMonkey.meshRender.material.transformUV); var rotation = new Laya.Vector3(0, 0.01, 0); ...

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