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

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

1. 高级应用-渲染纹理 [ 100%]

...e3D.load("../../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh")); Laya.loader.create([ "../../res/threeDimen/scene/Arena/Arena.ls", "../../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh" ], Laya.Handler.create(this, onComplete)); function onComplete() { setMaterials(scene.getChildByName("scen...

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

2. 高级应用-寻路导航 [ 97%]

...AStarMap.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { //初始化3D场景 this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/TerrainScene/XunLongShi.ls")); //删...

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

3. 动画-新版骨骼动画 [ 96%]

...attack","left_fall","right_fall","back_fall"]; var curStateIndex = 0; Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () { changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")); changeActionButton.s...

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

4. 高级应用-实时阴影 [ 94%]

...糊等级,越大越高,更耗性能 directionLight.shadowPCFType = 3; Laya.loader.create([ "../../res/threeDimen/staticModel/grid/plane.lh", "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh" ], Laya.Handler.create(this, onComplete)); var _quaternion = new Laya.Quaternion(); Laya.timer.frameL...

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

5. 材质-物理基础渲染材质 [ 93%]

...'; var envinfo = '../../res/threeDimen/env/' + env + '/envinfo.json'; Laya.loader.load(envinfo, Laya.Handler.create(this, onEnvDescLoaded, [envinfo, '../../res/threeDimen/env/' + env + '/'])); function onEnvDescLoaded(envinfo, envpath) { var envinfoobj = Laya.loader.getRes(envinfo); var camera = new...

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

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

..., 1, 1); var completeHandler = Laya.Handler.create(this, onComplete); Laya.loader.create("../../res/threeDimen/skinModel/dude/dude.lh", completeHandler); function onComplete() { var dude1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude1.transform.positi...

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

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

...ctor3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); Laya.loader.create("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var monster1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticMo...

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

8. Sprite3D-Sprite3D克隆 [ 90%]

...); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaM...

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

9. 照相机-3D空间转2D空间 [ 87%]

...lse); var directionLight = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMon...

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

10. 动画-旧版骨骼动画 [ 87%]

...SkinAnimation(spirit3D._childs[i], index); } private loadUI(): void { Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(this, function (): void { this.changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")) as Laya.Bu...

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