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

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

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

texture2DsetPixel纹理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. 高级应用-寻路导航 [ 98%]

..."../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png", clas: Laya.Texture2D, priority: 1, params: [true] }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/AStarMap.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onL...

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

3. 自定义shader-边缘光照shader [ 94%]

...omMaterial1 = new CustomMaterial(); customMaterial1.setDiffuseTexture(Laya.Texture2D.load("../../res/threeDimen/skinModel/dude/Assets/dude/head.png")); customMaterial1.setMarginalColor(new Laya.Vector3(1, 0.7, 0)); var customMaterial2 = new CustomMaterial(); customMaterial2.setDiffuseTexture(Laya.Te...

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

4. 自定义shader-地形shader [ 92%]

...al = new CustomTerrainMaterial(); customMaterial.setSplatAlphaTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/splatalpha 0.png")); customMaterial.setLightMapTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/Assets/Scenes/Level/XunLongShi/Lightmap-0_comp_light.pn...

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

5. 如何使用graphics创建Texture2D [ 90%]

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

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

6. 材质-BlinnPhong-高光贴图 [ 89%]

....skinnedMeshRender.materials[i]; //高光贴图 mat.specularTexture = Laya.Texture2D.load(this.specularMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { dude1.transform.rotate(this.rotation); dude2.transform.rotate(this.rotation); }); }class BlinnPhong_SpecularMap { private scene:Laya.Scene;...

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

7. 材质-BlinnPhong-法线贴图 [ 89%]

...Sprite3D.meshRender.material; //法线贴图 material.normalTexture = Laya.Texture2D.load(this.normalMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { monster1.transform.rotate(this.rotation); monster2.transform.rotate(this.rotation); }); }class BlinnPhong_NormalMap { private scene:Laya.Scen...

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

8. 求问Texture和Texture2D区别,和使用问题 [ 88%]

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

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

9. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 86%]

...。 ![](img/2.png)(图2) #### 3. 纹理加载 ​ 加载单个纹理使用Texture2D.load方法。这里我们创建了一个正方体,并且将加载纹理设置为他纹理。这个操作实际上和3D简单示例操作是相同。 ```typescript //加载纹理 Texture2D.load("res/thre...

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

10. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D内存管理) [ 84%]

... ​ 在2D中,图片使用是`Texture`纹理(注意不是3D中`Texture2D`)。但是实质上Texture就是对Texture2D再封装,Texture `bitmap` 属性就是他所属Texture2D ,Texture本身是记录了Texture2uv属性,来实现图集中单图片显示。 ​ 所以...

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