大约有 93 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0042 秒)
...I DocumentationAll Packages | All Classes | Index | Frames No Frames DirectionLightProperties | Methods | Events | Constants Packagelaya.d3.core.lightClasspublic class DirectionLightInheritanceDirectionLight LightSprite Sprite3D ComponentNode Node EventDispatcher Object DirectionLight 类...
来源: laya_api 发布时间: 20170929
...记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 !...
来源: Laya2.0_文档 发布时间: 20210715
...记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 !...
来源: Laya2.0_文档 发布时间: 20210715
...-15, 0, 0), true, false); this.camera.clearColor = null; //方向光 var directionLight: Laya.DirectionLight = 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, -1); //平...
来源: Laya_社区 发布时间: 20180820
...rue, false); //3.清除照相机颜色 this.camera.clearColor = null; this.directionLight = new Laya.DirectionLight(); this.scene.addChild(this.directionLight); this.directionLight.direction = new Laya.Vector3(0, -0.8, -1); this.directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); Laya.Sprite3D.l...
来源: Laya_社区 发布时间: 20200903
...置点光的衰减 //创建平行光1 var light3 = scene.addChild(new Laya.DirectionLight()); light3.direction = new Laya.Vector3(0.5, -1, 0); light3.color = new Laya.Vector3(0, 1, 1); //创建平行光2 var light4 = scene.addChild(new Laya.DirectionLight()); light4.direction = new Laya.Vector3(-1, ...
来源: Laya_社区 发布时间: 20180103
...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
...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
...0, 0), true, false); //方向光 var directionLight = new Laya.DirectionLight(); this.newScene.addChild(directionLight); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //设置平行光的方向 ...
来源: Laya_社区 发布时间: 20201120
...rm.rotate(new Laya.Vector3(-30, 0, 0), true, false); //添加方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new Laya.Vector3(...
来源: Laya_社区 发布时间: 20190618