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

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

51. 我就在unity中加了一个cube,导出后,在laya预览中怎么会有2个cube,而且位置还不一样,也没有贴图 [ 87%]

...裁剪) 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

52. 射线检测-选取物体 [ 87%]

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

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

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

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

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

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

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

59. 加载不了模型 [ 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. unity导出的场景不显示实时阴影 [ 83%]

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