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

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

1. 高级应用-基于物理渲染 [ 100%]

...tion () { var camera = scene.getChildByName("Camera"); camera.addComponent(CameraMoveScript); });class PBRDemo { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage...

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

2. 粒子系统-场景与粒子 [ 99%]

...camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript);class Particle_Scene { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.st...

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

3. 3D场景-场景加载 [ 96%]

...0)); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2/skyCube.ltc"); camera.sky = skyBox;class SceneLoad { constructor() { Laya3D.init(0, 0, true); ...

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

4. 天空-天空穹 [ 95%]

...orm.rotate(new Laya.Vector3( -30, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load("../../res/threeDimen/env/sp_default/env.png");class SkyDomeSa...

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

5. 天空-天空盒 [ 95%]

...orm.rotate(new Laya.Vector3( -30, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //天空盒 var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox1/skyCube.ltc...

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

6. 3D场景-地形场景 [ 92%]

...etChildByName("Scenes").getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox3/skyCube.ltc"); camera.sky = skyBox; var meshSprite3D = scene.getChildByName('Scenes').getChild...

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

7. 高级应用-渲染纹理 [ 91%]

...form.rotate(new Laya.Vector3(-10, 0, 0), true, false); camera.addComponent(CameraMoveScript); var renderTargetCamera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); renderTargetCamera.transform.translate(new Laya.Vector3(0, 0.5, 1)); renderTargetCamera.transform.rotate(new Laya.Vector3(-10, 0, 0), ...

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

8. 射线检测-碰撞器混合 [ 88%]

...rotate(new Laya.Vector3(-15, 0, 0), true, false); this.camera.addComponent(CameraMoveScript); //加载猴子 this.layaMonkey = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); this.layaMonkey.transform.position = new Laya.Vector3(0, 0, 1); this.laya...

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

9. 照相机-多照相机 [ 87%]

...izedViewport = new Laya.Viewport(0.5, 0.0, 0.5, 0.5); camera2.addComponent(CameraMoveScript); camera2.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2/skyCube.ltc"); camera2.sky = skyBox; var di...

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

10. 灯光-方向光 [ 85%]

...form.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); directionLight.direction = new Laya.Vector3(0, -1.0, -1.0); var grid = sce...

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