大约有 142 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0036 秒)
...aAir3.1.1的IDE版本,打开您提供的项目,并没有复现您说的DirectionLight(2)无法修改保存光照模式的问题,下面是动图演示: 2024-03-22 0 0 分享 微博 QZONE 微信 Laya_Fred 赞同来自: 您好,我这里测试LayaAir3.1.1版本上,灯光烘焙之后更改...
来源: Laya_社区 发布时间: 20240321
...向光 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
...w Laya.Vector3( -30, 0, 0), true, false); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; //移动灯光位置 light.transform.translate(new Laya.Vector3(0,5,0)); //设置灯光方向 light.direction = new Laya.Vector3(0.3, -1, 0); ...
来源: Laya_社区 发布时间: 20180307
...景中设置,代码中 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
...错 Laya.stage.frameRate = "slow"下,在场景中增加方向光,进行directionLight.direction = new Laya.Vector3(-0.2, -1,-0.45);设置的时候,会概率性的出现报错,如图示:注释掉directionLight.direction 的改变或者Laya.stage.frameRate = "fast"下则不会出现报错,...
来源: Laya_社区 发布时间: 20190617
...的相关数据 ```typescript { "GlowingEdgeMaterial":[ { "defineNames":["DIRECTIONLIGHT"], "passIndex":0, "subShaderIndex":0 }, { "defineNames":["DIRECTIONLIGHT","BONE"], "passIndex":0, "subShaderIndex":0 } ], "BLINNPHONG":[ { "defineNames":["DIFFUSEMAP","DIRECTIONLIGHT","NORMALMAP","UV","UV1","BON...
来源: Laya2.0_文档 发布时间: 20210714
...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
...的相关数据 ```typescript { "GlowingEdgeMaterial":[ { "defineNames":["DIRECTIONLIGHT"], "passIndex":0, "subShaderIndex":0 }, { "defineNames":["DIRECTIONLIGHT","BONE"], "passIndex":0, "subShaderIndex":0 } ], "BLINNPHONG":[ { "defineNames":["DIFFUSEMAP","DIRECTIONLIGHT","NORMALMAP","UV","UV1","BON...
来源: Laya2.0_文档 发布时间: 20210714