大约有 17 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0040 秒)
...代码来加,没阴影出来! 1,场景中加入直射光,开阴影 directionLight.shadow = true; 2,角色设置产生阴影 roleMeshSprite.meshRender.castShadow = true; 3,场景设置接受阴影 sceneMeshSprite.meshRender.receiveShadow = true; 2017-07-14 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170714
...回复 183*****755 赞同来自: 1,场景中加入直射光,开阴影 directionLight.shadow = true; 2,角色设置产生阴影 roleMeshSprite.meshRender.castShadow = true; 3,场景设置接受阴影 sceneMeshSprite.meshRender.receiveShadow = true; 2017-05-23 0 1 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170523
3D阴影无法渲染出来 //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0); directionLight.shadow = true; directionLight.shadowDistance = 3; directionLight...
来源: Laya_社区 发布时间: 20170809
Laya2.3.0 阴影BUG Laya2.3.0 阴影有如下几个问题 1.DirectionLight先设置shadow=true,再添加到场景,阴影不会出现,如下。反之是可以出现阴影的。(目前仅限2.3.0) //灯光开启阴影 directionLight.shadow = true this.addChild(directionLight)2.可产生...
来源: Laya_社区 发布时间: 20191129
3D灯光阴影无效 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.7, 0.6, 0.6); directionLight.specularColor = new Vector3(1.0, 1.0, 0.9); directionLight.diffuseColor = new Vector3(1, 1, 1); directionLight.tr...
来源: Laya_社区 发布时间: 20170617
...mera.clearColor = null; camera.orthographic = false; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.direction = new Laya.Vector3(-1, -1, 0); directionLight.shadow = true; directionLight.shadowDistance...
来源: Laya_社区 发布时间: 20180402
...个物件,阴影也显示不出来,这是为何? let light: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight) as Laya.DirectionLight; light.transform.rotate(new Laya.Vector3(-120, 0, 0), false, false); light.shadow = true; light.shadowDistance = 150; light.shadowResolution = 204...
来源: Laya_社区 发布时间: 20191030
...(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.8, 0.8, 0.8); directionLight.direction = new Laya.Vector3(-1, -1, 2); //灯光开启阴影 directionLight.shadow = true; //...
来源: Laya_社区 发布时间: 20180717
多重材质的问题 物件贴上多重材质,打开光照阴影(directionLight.shadowMode = Laya.ShadowMode.SoftLow;),模型渲染会出错,模型的点会飞。 不打开阴影如下图: 打开阴影入下图 附件 : --> demo.zip 2020-12-30 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20201230
...addComponent(ModelViewer); modelViewer.AroundPos = Laya.Vector3._ZERO; var directionLight = (scene_360 as Laya.Node).getChildByName('Directional light') as Laya.DirectionLight; //灯光开启阴影 directionLight.shadow = true; //可见阴影距离 directionLight.shadowDistance = 20; directionLight....
来源: Laya_社区 发布时间: 20190813