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

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

1. texture2d的getPixels()返回结构Uint8Array|Float32Array 如何转换为Float32Array格式 [ 100%]

texture2d的getPixels()返回结构Uint8Array|Float32Array 如何转换为Float32Array格式 2020-01-07 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

2. Texture2D的getPixels()始终为空 [ 93%]

Texture2D的getPixels()始终为空 做寻路的时候读取灰度图矩阵,texture2d始终拿不到像素。 附件 : --> 2019-05-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回...

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

3. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 93%]

...HTMLImageElement Laya.loader.fetch( url,"image" ).then((res)=>{ //创建Texture2D var t2d: Texture2D = new Texture2D(res.width, res.height, TextureFormat.R8G8B8A8, false, false, true); t2d.setImageData(res, true, false); //创建Texture var texture: Texture = new Texture(t2d); let sp2:Sprite = ne...

来源: Laya3.0_文档 发布时间: 20230303

4. texture2d的getPixels()返回结构 [ 93%]

texture2d的getPixels()返回结构 texture2d的getPixels()返回结构Uint8Array|Float32Array 如何转换为Float32Array格式  2020-01-07 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠...

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

5. 求个arraybuffer转texture2D [ 91%]

求个arraybuffer转texture2D HTMLImage create之后找不到onload方法,请问有什么方法 2018-10-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 没有 2018-11-19 0 0 分享 ...

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

6. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 90%]

...3D纹理的使用 3D的png或者jpg格式纹理加载,是使用的`Laya.Texture2D.load()`来加载纹理资源,如果要使用纹理压缩格式,则需要使用`Laya.loader.load()`来加载纹理资源。 示例代码如下所示: ```typescript //检测安卓平台 if (Laya.Browser.onAndroid...

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

7. 关于Texture的nv [ 85%]

...回复问题请先登录 发起人 tobe 相关问题 Texture如何转换成Texture2D有人搞过吗 Texture,和Texture2D如何互转? 微信真机下游戏MAX_TEXTURE_SIZE 微信小游戏 sharedCanvas 创建的Texture,能否再调用Texture.createFromTexture创建新纹理 请问layabox支持rende...

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

8. BlinnPhong材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 80%]

... material:BlinnPhongMaterial = new BlinnPhongMaterial(); //漫反射贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = ma...

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

9. ArrayBuffer如何转为Texture? [ 77%]

...的 怎么把世界坐标系转为屏幕坐标系? Texture如何转换成Texture2D有人搞过吗 layaAir的位图字体fnt可以兼容 egret 的 texture merger工具生成的fnt吗? 关于Texture的nv panel内容较多时 真机上报错larger than MAX_TEXTURE_SIZE (4096) webgl模式下,Textu...

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

10. 3D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 77%]

...edoColor: { type: Color, default: [1, 1, 1, 1] }, u_AlbedoTexture: { type: Texture2D, options: { define: "ALBEDOTEXTURE" } }, u_NormalTexture: { type: Texture2D, options: { define: "NORMALTEXTURE" } }, u_NormalScale: { type: Float, default: 1.0, range: [0.0, 2.0] }, u_Metallic: { type: Float, defaul...

来源: Laya3.0_文档 发布时间: 20251010