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

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

1. 注册宏定义与使用宏(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 100%]

...**/ CustomTerrainMaterial.__init__(); .... } private _setDetailNum(value){ switch (value) { case 1: this._shaderValues.addDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM2); this._shaderValues.removeDefine(CustomTer...

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

2. 注册宏定义与使用宏(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 100%]

...**/ CustomTerrainMaterial.__init__(); .... } private _setDetailNum(value){ switch (value) { case 1: this._shaderValues.addDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM2); this._shaderValues.removeDefine(CustomTer...

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

3. 注册宏定义与使用宏(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 99%]

...mTerrainMaterial.__init__(); .... } private function _setDetailNum(value){ switch (value) { case 1: this._shaderValues.addDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM2); this._shaderValues.removeDefine(CustomTer...

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

4. 预设/场景的导出(JavaScript-3D基础(JS)-LayaAir3D之3D场景可视化编辑) [ 85%]

...ayaAir3D--Help--Tutorial中查看。** 在菜单栏--LayaAir3D--Shortcuts--Switch to LayaAir3D shader,能将项目内所有材质改为LayaAir3D的默认材质(BlinnPhong)。 在导出完成后,我们把文件复制到简单示例的bin文件夹下。 Tips:本章节中只介绍简单加载...

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

5. 预设/场景的导出(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 85%]

...ayaAir3D--Help--Tutorial中查看。** 在菜单栏--LayaAir3D--Shortcuts--Switch to LayaAir3D shader,能将项目内所有材质改为LayaAir3D的默认材质(BlinnPhong)。 在导出完成后,我们把文件复制到简单示例的bin文件夹下。 Tips:本章节中只介绍简单加载...

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

6. 预设/场景的导出(ActionScript-3D基础(AS3)-LayaAir3D之3D场景可视化编辑) [ 84%]

...ayaAir3D--Help--Tutorial中查看。** 在菜单栏--LayaAir3D--Shortcuts--Switch to LayaAir3D shader,能将项目内所有材质改为LayaAir3D的默认材质(BlinnPhong)。 在导出完成后,我们把文件复制到简单示例的bin文件夹下。 Tips:本章节中只介绍简单加载...

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

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

... ```typescript function(e:Event) { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.gar...

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

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

...on)) ```typescript function(e:Event):void { _castType++; _castType %= 2; switch (_castType) { case 0: (e.target as Button).label = "释放显存"; loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (_scene)//_scene不为空表示场景已加载完成 garbageCollection(); b...

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

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

...cript function(e:Laya.Event):void { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.ga...

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

10. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 55%]

...对象 */ function updateColor(txt){ var c = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } /** * 缓动完成后的回调方法 * txt 缓动对象 ...

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