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

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

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

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

72. Laya2.3.0 阴影BUG [ 81%]

Laya2.3.0 阴影BUG Laya2.3.0 阴影有如下几个问题   1.DirectionLight先设置shadow=true,再添加到场景,阴影不会出现,如下。反之是可以出现阴影的。(目前仅限2.3.0) //灯光开启阴影 directionLight.shadow = true this.addChild(directionLight)2.可产生...

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

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

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

74. 如何为灯光添加阴影(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 80%]

...的demo地址: 灯光方面的设置: ```typescript // Use soft shadow. directionLight.shadowMode = Laya.ShadowMode.SoftLow; // Set shadow max distance from camera. directionLight.shadowDistance = 3; // Set shadow resolution. directionLight.shadowResolution = 1024; // Set shadow cascade mode. dire...

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

75. laya3D 发部为android,只要一创建场景(包括空场景)就有如下报错,并且黑屏 [ 80%]

...ue; camera.orthographicVerticalSize = 15; this.mainCamera = camera; // 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); scene.ambientColor = new Laya.Vector3(0.0, ...

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

76. 多摄像机窗口的使用(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 80%]

...rmalizedViewport = new Viewport(0.5, 0.0, 0.5, 0.5); //添加平行光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; //加载模型 Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Handler.create(null, function(sp:Sprite3D):void { //将...

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

77. 微信小游戏wxmin图片加载有点问题 [ 80%]

...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.4); directionLight.direction = new Laya.Vector3(1, -1, -1); Laya.Stat.show(0,30) var box = scene.addChild(new Lay...

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

78. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 80%]

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

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

79. 如何为灯光添加阴影(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 80%]

...的demo地址: 灯光方面的设置: ```typescript // Use soft shadow. directionLight.shadowMode = Laya.ShadowMode.SoftLow; // Set shadow max distance from camera. directionLight.shadowDistance = 3; // Set shadow resolution. directionLight.shadowResolution = 1024; // Set shadow cascade mode. dire...

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

80. rigidBody.applyForce 物体不会移动 [ 79%]

...場景 private scene: Laya.Scene3D; private camera: Laya.Camera; private directionlight: Laya.DirectionLight; private character: Laya.Sprite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0, 0.2); private translateS: Laya.Vector3 = new Laya.Vector...

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