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

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

1. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 100%]

texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 export class Texture2dTest { private sprite3D:Laya.Sprite3D; private readonly AllPng:string[] = ["pic-001.png","output-06.png"]; private texture:Laya.Texture2D; private box; constructor(){ Laya3D.init(0, 0); Laya.s...

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

2. 如何使用graphics创建Texture2D [ 91%]

如何使用graphics创建Texture2D 请教一下,怎么样把sprite上用graphics绘制出来的图,作为纹理(Texture2D)赋值给3D对象 2018-10-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 seaco...

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

3. 求问Texture和Texture2D的区别,和使用问题 [ 89%]

求问Texture和Texture2D的区别,和使用问题 对用引擎中这两个类的分别不太清楚,有以下几个问题:1、Texture和Texture2D有什么区别?我发现自己用Laya.loader.load的图片或ui加载的就是Texture,加载.ls/.lh自动生成的贴图就是Texture2D   2、...

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

4. [LayaAir3]3.3 beta3 ios 15pro偶尔材质会变黑 [ 85%]

...Scale: { type: Float, default: 1.0 },         u_AlbedoTexture: { type: Texture2D, options: { define: "ALBEDOTEXTURE" } },          // u_AlbedoTexture2: { type: Texture2D, options: { define: "ALBEDOTEXTURE2" } },         // u_AlbedoTexture2Offset: { type: Vector4, default: [1, 1, 0, 0] }...

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

5. WaterPrimaryMaterial的使用 [ 83%]

...ar material: Laya.BaseMaterial = new WaterMaterial();         Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, ...

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

6. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 80%]

...ideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture; image.wid...

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

7. worker.js 使用问题 [ 79%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:33519)     at Texture2D.__proto.recreateResource (laya.d3.js:33562)     at Texture2D.__proto.activeResource (laya.core.js:13234)     at Texture2D.<anonymous> (laya...

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

8. 3D开启多线程报错 [ 79%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:37225)     at Texture2D.__proto.recreateResource (laya.d3.js:37271)     at Texture2D.__proto.onAsynLoaded (laya.d3.js:37329)     at ResInfo.onLoaded (laya.core.js:13189)...

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

9. 3D开启多线程报错 [ 79%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:37225)     at Texture2D.__proto.recreateResource (laya.d3.js:37271)     at Texture2D.__proto.onAsynLoaded (laya.d3.js:37329)     at ResInfo.onLoaded (laya.core.js:13189)...

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

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

...lbedo = 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(0, 0, 0); var...

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