大约有 339 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0048 秒)
Laya_社区(199) Laya2.0_文档(67) Laya_示例(44) Laya3.0_api(15) Laya3.0_文档(12) laya_api(1) Laya2.0_api(1)
...ene3D()) as Laya.Scene3D; //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 3, 30)); //方向光 const directionLight =this.newScen...
来源: Laya_社区 发布时间: 20210103
...xt: RenderContext3D depthType: DepthTextureMode Returns void update update(camera: Camera, depthType: DepthTextureMode, depthTextureFormat: RenderTargetFormat): void Defined in laya/d3/depthMap/DepthPass.ts:107 渲染深度更新 Parameters camera: Camera depthType: DepthTextureMode depthTextureForm...
来源: Laya3.0_api 发布时间: 20231115
...g("添加预制体"); // })); self.camera = scene3d.getChildByName("--- ENVIRONEMENT ---").getChildByName("Main Camera"); self.scene = scene3d; })); this._ray = new Laya.Ray(new Laya.Vector3(0, 0,...
来源: Laya_社区 发布时间: 20220506
...我想要透明的效果 就是只有模型 没有背景的效果, camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.clearColor = new Laya.Vector4(0,0,0,1);//null camera.useOcclusionCulling = true; 这样设置了没效果 附件 : --> 2019-12-17 添加评...
来源: Laya_社区 发布时间: 20191217
在一个sprite3D上添加子物体camera ,也能够看到其他的物体。。。请问如何在摄像机中只看到一个想看到的sprite3D对象呢? 2017-08-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20170811
... QZONE 微信 wulilio 赞同来自: 是为了改背景颜色吗?设置下camera.clearColor试试? camera.clearColor = new Laya.Vector3(0.2, 0.2, 0.2); 2018-10-16 0 0 分享 微博 QZONE 微信 蜀山 赞同来自: 不是改背景颜色,是3D场景,需要天空盒,1.7的版本是没问题...
来源: Laya_社区 发布时间: 20181016
...scene:Laya.Scene3D):void { Laya.stage.addChild(scene) as Laya.Scene3D; var camera:Laya.Camera = scene.getChildByName("Main Camera") as Laya.Camera; //camera.addComponent(CameraMoveScript); })); 2019-03-08 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20190308
...aya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); })); ```
来源: Laya2.0_文档 发布时间: 20210715
...l) as MyScene; this._scene.output(); Laya.stage.addChild(this._scene); var camera:Laya.Camera = this._scene.getChildByName("Main Camera") as Laya.Camera; camera.addComponent(CameraMoveScript); var tiger:Laya.Sprite3D = this._scene.getChildByName("tiger_idle") as Laya.Sprite3D; co...
来源: Laya_社区 发布时间: 20180317
...s=new Vector2(MouseManager.instance.mouseX, MouseManager.instance.mouseY); camera.viewportPointToRay(this.mousePos,ray); this.ps.rayCast(ray,this.rayCastHit,500, 0); 2018-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...
来源: Laya_社区 发布时间: 20181220