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

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

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

... 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

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

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

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

3. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 95%]

...var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, ...

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

4. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 95%]

...//新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设...

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

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

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

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

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

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

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

7. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 91%]

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

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

8. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 91%]

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

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

9. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 90%]

...eBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monkey:Sprite3D = res.getChildByName("LayaMonkey") as Sprite3D...

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

10. BlinnPhong材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 84%]

...cript var material = new Laya.BlinnPhongMaterial(); //漫反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##...

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