大约有 154 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0034 秒)
...裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.ambientColor = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.diffuseColor = new Laya....
来源: Laya_社区 发布时间: 20180108
...ector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 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, -1); //平面 var plane = scene.addChild(new Laya.MeshSpri...
来源: Laya_示例 发布时间: 20241125
...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
...ted All Inherited Externals Only exported Menu Globals "laya/d3/core/light/DirectionLight" DirectionLight Class DirectionLight deprecated DirectionLight 类用于创建平行光。 Hierarchy LightSprite DirectionLight Index Constructors constructor Properties _extra _scene _url name tag WORLDINVERTF...
来源: Laya3.0_api 发布时间: 20231115
...ansform.rotate(new Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vector3(0.6, 0.6, 0.6); //加载精灵 var monkey:Sprite3D = Loader.getRes("res/threeDimen/skinModel/LayaMonke...
来源: Laya2.0_文档 发布时间: 20210714
...; camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); let directionLight = new Laya.DirectionLight(); scene.addChild(directionLight); let mat = directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(1.0, -1.0, -1.0)); directionLight.transform.worldMatrix = mat; //...
来源: Laya_社区 发布时间: 20200915
...的demo地址: 灯光方面的设置: ```typescript // Use soft shadow. directionLight.shadowMode = ShadowMode.SoftLow; // Set shadow max distance from camera. directionLight.shadowDistance = 3; // Set shadow resolution. directionLight.shadowResolution = 1024; // Set shadow cascade mode. direction...
来源: Laya2.0_文档 发布时间: 20210715
...(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 0)); //添加自定义模型 var box ...
来源: Laya2.0_文档 发布时间: 20210715
...Component(CameraMoveScript); //添加方向光 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); //添加自定义...
来源: Laya_社区 发布时间: 20180427
...个物件,阴影也显示不出来,这是为何? 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