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

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

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

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

42. 官方技术文档中的问题 [ 67%]

...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.direction = new Laya.Vector3(1, -1, 0);  //添加自定义模型 var box = scene.addChild(new...

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

43. 没有人尝试使用3d物理引擎么 [ 66%]

...3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.RandX; import laya.d3.math.Vector3; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; i...

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

44. Cannot read property 'rayCast' of undefined [ 65%]

...rue, false); //3.清除照相机颜色 this.camera.clearColor = null; this.directionLight = new Laya.DirectionLight(); this.scene.addChild(this.directionLight); this.directionLight.direction = new Laya.Vector3(0, -0.8, -1); this.directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); Laya.Sprite3D.l...

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

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

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

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

...邀请: 与内容相关的链接 提交 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

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

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

48. 同一类型光源互斥的问题报告 [ 62%]

...置点光的衰减 //创建平行光1 var light3 = scene.addChild(new Laya.DirectionLight()); light3.direction = new Laya.Vector3(0.5, -1, 0); light3.color = new Laya.Vector3(0, 1, 1); //创建平行光2 var light4 = scene.addChild(new Laya.DirectionLight()); light4.direction = new Laya.Vector3(-1, ...

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

49. 关于平行光渲染投影问题,求解惑 [ 61%]

....Vector3(0,0,0),new Laya.Vector3(0,1,0)); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; //移动灯光位置 light.transform.translate(new Laya.Vector3(-5,10,-5)); //设置灯光方向 light.direction = new Laya.Vector3(1, -1, 1);...

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

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

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