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

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

1. 射线检测-碰撞器混合 [ 100%]

...效。Laya3D.init(0, 0, true); this._tempUnitX1 = new Laya.Vector3(0, 0, -0.1); this._tempUnitX2 = new Laya.Vector3(0, 0, 0.1); this._tempUnitX3 = new Laya.Vector3(-0.1, 0, 0); this._tempUnitX4 = new Laya.Vector3(0.1, 0, 0); this.debug = true; Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage...

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

2. VR场景-VR地球 [ 95%]

...加了vr相机 var vrCamera = scene.addChild(new Laya.VRCamera(0.03, 0, 0, 0.1, 100)); vrCamera.transform.translate(new Laya.Vector3(0, 0.1, 10)); vrCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; vrCamera.addComponent(VRCameraMoveScript); var directionLight = scene.addChild(new Laya.DirectionLigh...

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

3. 照相机-多照相机 [ 94%]

...dChild(new Laya.Scene()); var camera1 = scene.addChild(new Laya.Camera( 0, 0.1, 100)); camera1.clearColor = new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Laya.Vector3(0, 0, 1.5)); camera1.normalizedViewport = new Laya.Viewport(0, 0, 0.5, 1.0); var camera2 = scene.addChild(new...

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

4. 材质-物理基础渲染材质 [ 92%]

... envinfoobj = Laya.loader.getRes(envinfo); var camera = new Laya.Camera(0, 0.1, 1000); if (envinfoobj.ev != undefined) camera._shaderValues.setValue(Laya.BaseCamera.HDREXPOSURE, Math.pow(2, envinfoobj.ev)); else camera._shaderValues.setValue(Laya.BaseCamera.HDREXPOSURE, Math.pow(2, 0.0)); scene.addC...

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

5. 粒子系统-场景与粒子 [ 90%]

.../particle/Example_01.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)) ; 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.stag...

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

6. Sprite3D-Sprite3D变换 [ 89%]

...addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handle...

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

7. 粒子系统-燃烧大地 [ 87%]

...addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var particleSprite3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/particle/ET...

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

8. 粒子系统-永恒之光 [ 87%]

...addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var particleSprite3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/particle/ET...

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

9. 3D场景-场景加载 [ 86%]

...en/scene/Arena/Arena.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 0)); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube...

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

10. 天空-天空穹 [ 86%]

...addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SK...

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