大约有 154 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0034 秒)
....Vector3(0,0,0),new Laya.Vector3(0,1,0)); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; //移动灯光位置 light.transform.translate(new Laya.Vector3(-5,10,-5)); //设置灯光方向 light.direction = new Laya.Vector3(1, -1, 1);...
来源: Laya_社区 发布时间: 20180302
...回复 183*****755 赞同来自: 1,场景中加入直射光,开阴影 directionLight.shadow = true; 2,角色设置产生阴影 roleMeshSprite.meshRender.castShadow = true; 3,场景设置接受阴影 sceneMeshSprite.meshRender.receiveShadow = true; 2017-05-23 0 1 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170523
...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
...的相关数据 ```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
...错 Laya.stage.frameRate = "slow"下,在场景中增加方向光,进行directionLight.direction = new Laya.Vector3(-0.2, -1,-0.45);设置的时候,会概率性的出现报错,如图示:注释掉directionLight.direction 的改变或者Laya.stage.frameRate = "fast"下则不会出现报错,...
来源: Laya_社区 发布时间: 20190617
...景中设置,代码中 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
...的相关数据 ```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