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

大约有 95 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)

61. 3D网格添加刚体后设置欧拉角出现位置错误 [ 75%]

...a.BaseCamera.CLEARFLAG_SOLIDCOLOR;         //方向光         let directionLight = this.scene.addChild(new Laya.DirectionLight());         directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6);         let mat = directionLight.transform.worldMatrix;         mat.setForward(new L...

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

62. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 75%]

...rm.rotate(new Laya.Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //加载精灵 var monkey = Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"); //精灵...

来源: Laya2.0_文档 发布时间: 20210714

63. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 75%]

...rm.rotate(new Laya.Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //加载精灵 var monkey = Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"); //精灵...

来源: Laya2.0_文档 发布时间: 20210715

64. LayaAir2.6.0版阴影系统如何使用,请教请教! [ 74%]

...向光         this.m_light = this.m_scene3D.addChild(new Laya.DirectionLight()) as Laya.DirectionLight;         this.m_light.color = new Laya.Vector3(0.8, 0.8, 0.8);         this.m_light.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 1));       ...

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

65. 为什么动态设置聚光灯朝向无效呢 [ 74%]

...邀请: 与内容相关的链接 提交 4 个回复 game4d 赞同来自: DirectionLight  怎么调光照强度呢 2017-11-05 0 0 分享 微博 QZONE 微信 ymsdandan 赞同来自: 关于灯光的设置请参考技术文档https://ldc.layabox.com/doc/?nav=zh-as-4-0-4 2017-11-06 0 0 分享 微博 QZO...

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

66. laya的各种light支持culling mask吗? [ 73%]

...景中设置,代码中 this._PlayerLight = this._scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; this._PlayerLight.color = new Laya.Vector3(0.7, 0.6, 0.6); this._PlayerLight.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 0)); this._PlayerLight.layer = 9; 都没用啊 ...

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

67. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 73%]

... 0, 0), true, false); this.camera.clearColor = null; //添加方向光 var directionLight: Laya.DirectionLight = this.scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0); //添...

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

68. 加载.lh文件 运行后黑屏 无法显示 [ 72%]

...a.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false);     var directionLight = new Laya.DirectionLight();     scene.addChild(directionLight);     //设置平行光颜色     directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6);         var layaMonkey:Laya.Sprite3D ...

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

69. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 72%]

...                   //创建平行光         var directionLight = new Laya.DirectionLight();         scene.addChild(directionLight);         //设置平行光颜色         directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6);           ...

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

70. 2D方向光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...先阅读2D灯光的基类文档《2D灯光与网格》。 2D方向光(DirectionLight2D)在游戏开发中用于模拟来自特定方向的平行光源,常用于表现阳光或月光等大范围均匀照射的光线效果。它能够为场景中的物体提供统一的光照方向和阴影效...

来源: Laya3.0_文档 发布时间: 20251010