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

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

1. 高级应用-寻路导航 [ 100%]

...url: "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png", clas: Laya.Texture2D, priority: 1, params: [true] }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/AStarMap.png", clas: ...

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

2. 自定义shader-边缘光照shader [ 98%]

...ght.direction = new Laya.Vector3(1, -1, 0); var dude = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude.once(Laya.Event.HIERARCHY_LOADED, this, function () { var customMaterial1 = new CustomMaterial(); customMaterial1.setDiffuseTexture(Laya.Texture2D.load("../....

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

3. Sprite3D-Sprite3D加载 [ 95%]

...ya.Vector3( -15, 0, 0), true, false); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"));class Sprite3DLoad { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_N...

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

4. Sprite3D-Sprite3D克隆 [ 94%]

...onComplete)); function onComplete() { var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = Laya.Sprite3D.instantiate(layaMonkey, scene, false, new Laya.Vector3(0.6, 0, 0)); //克隆sprite3d var layaMo...

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

5. 材质-BlinnPhong-高光贴图 [ 93%]

...leteHandler); function onComplete() { var dude1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude1.transform.position = new Laya.Vector3(-0.6, 0, 0); var dude2 = Laya.Sprite3D.instantiate(dude1, this.scene, false, new Laya.Vector3(0.6, 0, 0)); var skinned...

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

6. 材质-BlinnPhong-法线贴图 [ 93%]

...omplete)); function onComplete() { var monster1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh")); monster1.transform.position = new Laya.Vector3(-0.6, 0, 0); monster1.transform.localScale = new Laya.Vector3(0.002, 0.002, 0.002); var monster2 = ...

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

7. Sprite3D-Sprite3D变换 [ 89%]

...s, onComplete)); function onComplete() { layaMonkey1 = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey2 = Laya.Sprite3D.instantiate(layaMonkey1, scene, false, new Laya.Vector3(0, 0, 0)); layaMonkey3 = scene.addChild(Laya.Sprite3D.instantiate(...

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

8. 自定义shader-地形shader [ 88%]

...); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var customMaterial = new CustomTerrainMaterial(); customMaterial.setSplatAlphaTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/splatalpha 0.png")); customMateria...

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

9. 高级应用-Laya3D与网页混合 [ 86%]

...or = new Laya.Vector3(0.7, 0.6, 0.6); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"));class Laya3DCombineHtml { constructor() { var div = Laya.Browser.window.document.createElement("div"); div.innerHTML = "此内容来源于HTML网页, ...

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

10. 照相机-正交相机 [ 84%]

....addChild(new Laya.DirectionLight()); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { layaMonkey.transform.localScale = new Laya.Vector3(3, 3, 3); //转换2D屏幕坐标...

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