大约有 95 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
...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
...rm.rotate(new Laya.Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //加载精灵 var monkey = Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"); //精灵...
来源: Laya2.0_文档 发布时间: 20210714
...rm.rotate(new Laya.Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //加载精灵 var monkey = Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"); //精灵...
来源: Laya2.0_文档 发布时间: 20210715
...向光 this.m_light = this.m_scene3D.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; this.m_light.color = new Laya.Vector3(0.8, 0.8, 0.8); this.m_light.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 1)); ...
来源: Laya_社区 发布时间: 20200323
...邀请: 与内容相关的链接 提交 4 个回复 game4d 赞同来自: DirectionLight 怎么调光照强度呢 2017-11-05 0 0 分享 微博 QZONE 微信 ymsdandan 赞同来自: 关于灯光的设置请参考技术文档https://ldc.layabox.com/doc/?nav=zh-as-4-0-4 2017-11-06 0 0 分享 微博 QZO...
来源: Laya_社区 发布时间: 20171105
...景中设置,代码中 this._PlayerLight = this._scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; this._PlayerLight.color = new Laya.Vector3(0.7, 0.6, 0.6); this._PlayerLight.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 0)); this._PlayerLight.layer = 9; 都没用啊 ...
来源: Laya_社区 发布时间: 20190709
... 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
...a.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var directionLight = new Laya.DirectionLight(); scene.addChild(directionLight); //设置平行光颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); var layaMonkey:Laya.Sprite3D ...
来源: Laya_社区 发布时间: 20190531
... //创建平行光 var directionLight = new Laya.DirectionLight(); scene.addChild(directionLight); //设置平行光颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); ...
来源: Laya_社区 发布时间: 20190605
...先阅读2D灯光的基类文档《2D灯光与网格》。 2D方向光(DirectionLight2D)在游戏开发中用于模拟来自特定方向的平行光源,常用于表现阳光或月光等大范围均匀照射的光线效果。它能够为场景中的物体提供统一的光照方向和阴影效...
来源: Laya3.0_文档 发布时间: 20251010