大约有 578 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0065 秒)
Laya_社区(391) Laya2.0_文档(96) Laya_示例(44) Laya3.0_api(18) Laya3.0_文档(14) laya_api(8) Laya2.0_api(7)
... MouseManager.instance.mouseY; //由点击的屏幕坐标产生射线 this.camera.viewportPointToRay(this.point, this.ray); //创建CannonHitResult对象来存储射线检测结果 var out = new CannonHitResult(); //进行射线检测 this.scene.cannonPhysicsSimulation.rayCast(this.ray,out); //Canno...
来源: Laya2.0_文档 发布时间: 20210715
...lh"); //加载到场景 scene.addChild(monkey); //让摄影机指向角色 camera.transform.lookAt(monkey.transform.position,new Laya.Vector3(0,1,0)); //获取动画组件 var ani = monkey.getComponent(Laya.Animator); //播放攻击状态 ani.play("attack"); //等待动画播放完成 Laya.timer.fra...
来源: Laya2.0_文档 发布时间: 20210715
...te3D; //加载到场景 scene.addChild(monkey); //让摄影机指向角色 camera.transform.lookAt(monkey.transform.position,new Laya.Vector3(0,1,0)); //获取动画组件 var ani = monkey.getComponent(Laya.Animator) as Laya.Animator; //播放攻击状态 ani.play("attack"); //等待动画播放完...
来源: Laya2.0_文档 发布时间: 20210715
... MouseManager.instance.mouseY; //由点击的屏幕坐标产生射线 this.camera.viewportPointToRay(this.point, this.ray); //创建CannonHitResult对象来存储射线检测结果 var out: CannonHitResult = new CannonHitResult(); //进行射线检测 this.scene.cannonPhysicsSimulation.rayCast(this....
来源: Laya2.0_文档 发布时间: 20210714
...lh"); //加载到场景 scene.addChild(monkey); //让摄影机指向角色 camera.transform.lookAt(monkey.transform.position,new Vector3(0,1,0)); //获取动画组件 var ani:Animator = monkey.getComponent(Laya.Animator) asAnimator; //播放攻击状态 ani.play("attack"); //等待动画播放完成...
来源: Laya2.0_文档 发布时间: 20210715
...transform.position.cloneTo(this._finalPosition); //初始化相机 var moveCamera: Camera = (<Camera>this.moveSprite3D.addChild(new Camera())); var tmpLocalPosition: Vector3 = moveCamera.transform.localPosition; tmpLocalPosition.setValue(-1.912066, 10.07926, -10.11014); moveCamera.transform.lo...
来源: Laya3.0_文档 发布时间: 20230303
...rcom.shadowMode = Laya.ShadowMode.SoftLow; // Set shadow max distance from camera. dircom.shadowDistance = 50; // Set shadow resolution. dircom.shadowResolution = 1024; // Set shadow cascade mode. dircom.shadowCascadesMode = Laya.ShadowCascadesMode.NoCascades; // Set shadow normal bias. dircom.shado...
来源: Laya3.0_文档 发布时间: 20241014
...se) Laya.stage.addChild(pNewScene); Util3d.getChildByPath(pNewScene, "Main Camera").active = false; let pBull = <Laya.Sprite3D>Util3d.getRes(this.sBullRes) let pEnemy = <Laya.Sprite3D>Util3d.getRes(this.sEnemyRes) pNewScene.addChild(pBull); pNewScene.addChild(pEnemy); let tPosBull = Util...
来源: Laya_社区 发布时间: 20200720
... uniform sampler2D u_MainTex; uniform sampler2D u_NoiseTex; uniform vec3 u_CameraPos; uniform vec3 u_AmbientColor; uniform DirectionLight u_DirectionLight; uniform float u_Time; varying vec2 v_textcoord; varying vec3 v_normal; varying vec4 v_wpos; void main() { float _NoiseSpeedX = 1.0; float _Noi...
来源: Laya_社区 发布时间: 20190923
...项目代码里强制HDR效果。示例代码如下: ```typescript this.camera = new Laya.Camera(0, 0.1, 100); this.camera.enableHDR = false; //关闭HDR ``` 关闭HDR后,抗锯齿生效对比效果如图9-2所示。 ![10-2](img/10-2.png) (图10-2) #### 2.4 抗锯齿有效,为什么还有锯...
来源: Laya2.0_文档 发布时间: 20210715