大约有 142 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0038 秒)
...a.BaseCamera.CLEARFLAG_SOLIDCOLOR; //方向光 let directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); let mat = directionLight.transform.worldMatrix; mat.setForward(new L...
来源: Laya_社区 发布时间: 20201127
Laya2.3.0 阴影BUG Laya2.3.0 阴影有如下几个问题 1.DirectionLight先设置shadow=true,再添加到场景,阴影不会出现,如下。反之是可以出现阴影的。(目前仅限2.3.0) //灯光开启阴影 directionLight.shadow = true this.addChild(directionLight)2.可产生...
来源: Laya_社区 发布时间: 20191129
... 0, 0), true, false); this.camera.clearColor = null; //添加方向光 var directionLight: Laya.DirectionLight = this.scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0); //添...
来源: Laya_社区 发布时间: 20180307
...的demo地址: 灯光方面的设置: ```typescript // Use soft shadow. directionLight.shadowMode = Laya.ShadowMode.SoftLow; // Set shadow max distance from camera. directionLight.shadowDistance = 3; // Set shadow resolution. directionLight.shadowResolution = 1024; // Set shadow cascade mode. dire...
来源: Laya2.0_文档 发布时间: 20210715
...ue; camera.orthographicVerticalSize = 15; this.mainCamera = camera; // 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); scene.ambientColor = new Laya.Vector3(0.0, ...
来源: Laya_社区 发布时间: 20180126
...rmalizedViewport = new Viewport(0.5, 0.0, 0.5, 0.5); //添加平行光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; //加载模型 Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Handler.create(null, function(sp:Sprite3D):void { //将...
来源: Laya2.0_文档 发布时间: 20210715
...ector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.4); directionLight.direction = new Laya.Vector3(1, -1, -1); Laya.Stat.show(0,30) var box = scene.addChild(new Lay...
来源: Laya_社区 发布时间: 20180104
...a.BaseCamera.CLEARFLAG_SOLIDCOLOR; //方向光 let directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.diffuseColor = new Laya.Vector3(0.6, 0.6, 0.6); let mat = directionLight.transform.worldMatrix; mat.setForwar...
来源: Laya_社区 发布时间: 20191009
...的demo地址: 灯光方面的设置: ```typescript // Use soft shadow. directionLight.shadowMode = Laya.ShadowMode.SoftLow; // Set shadow max distance from camera. directionLight.shadowDistance = 3; // Set shadow resolution. directionLight.shadowResolution = 1024; // Set shadow cascade mode. dire...
来源: Laya2.0_文档 发布时间: 20210715
...場景 private scene: Laya.Scene3D; private camera: Laya.Camera; private directionlight: Laya.DirectionLight; private character: Laya.Sprite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0, 0.2); private translateS: Laya.Vector3 = new Laya.Vector...
来源: Laya_社区 发布时间: 20200917