大约有 31 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0039 秒)
...PointLight2.1 创建点光源2.2 组件属性2.3 使用代码设置三、DirectionLight3.1 创建平行光3.2 组件属性3.3 使用代码设置四、SpotLight4.1 创建聚光4.2 组件属性4.3 使用代码设置五、AreaLight5.1 创建区域光5.2 组件属性六、如何为灯光添加阴影七...
来源: Laya3.0_文档 发布时间: 20241014
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
...ra.addComponent(CameraMoveScript); //方向光 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); //灯光开...
来源: Laya_社区 发布时间: 20180725
... //添加光照 var directionLight= new Laya.DirectionLight(); this.scene.addChild(directionLight); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( ...
来源: Laya_社区 发布时间: 20190509
... //添加方向光 this.Light = this.mainscene.addChild(new Laya.DirectionLight()); this.Light.color = new Laya.Vector3(0.7, 0.7, 0.7); this.Light.direction = new Laya.Vector3(-1.3, -1.5, -1.6); // shadow this.Light.shadow = true; //产生投影的范围(如过小将不会产生投影) ...
来源: Laya_社区 发布时间: 20181016