• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 142 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0040 秒)

51. PBR标准材质实时阴影渲染问题 [ 87%]

...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

52. laya.d3.core.light.DirectionLight_API3.0 [ 85%]

...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

53. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 85%]

...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

54. laya2.7.3 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 84%]

...; 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

55. IDE创建3D示例项目(JavaScript-3D基础(JS)-快速开始一个LayaAir3D项目) [ 84%]

...(-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

56. 加载不了模型 [ 84%]

...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

57. 如何为灯光添加阴影(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 84%]

...的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

58. unity导出的场景不显示实时阴影 [ 84%]

...个物件,阴影也显示不出来,这是为何?   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

59. 3D加载不了 [ 83%]

...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

60. localRotationEulerY旋转位置错误 [ 83%]

...0, 0), true, false);          //方向光         var directionLight = new Laya.DirectionLight();         this.newScene.addChild(directionLight);         directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6);         //设置平行光的方向  ...

来源: Laya_社区 发布时间: 20201120