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

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

31. 为什么平行光DirectionLight的镜面反射颜色specularColor属性不存在 [ 92%]

为什么平行光DirectionLight的镜面反射颜色specularColor属性不存在 1.添加了平行光但是显示这个属性不存在 2.地图上的反射光太强了,是不是因为这个属性,如果不是是什么原因,怎么调? 附件 : --> 2017-09-09 添加评论 免费帖 --> 分...

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

32. 照相机-多照相机 [ 92%]

.../../res/threeDimen/skyBox/skyBox2/skyCube.ltc"); camera2.sky = skyBox; var directionLight = scene.addChild(new Laya.DirectionLight()); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"));class MultiCamera { constructor() { Laya3D.init(0, 0, ...

来源: Laya_示例 发布时间: 20251130

33. 高级应用-渲染纹理 [ 92%]

...enderingOrder = -1; renderTargetCamera.addComponent(CameraMoveScript); 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); var layaMonkey = scene.addChild(Laya.Sprite3D.loa...

来源: Laya_示例 发布时间: 20251130

34. 射线检测-放置物体 [ 91%]

...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_示例 发布时间: 20251130

35. Resources already exist,is repeated loading 加载特效报重复加载 [ 91%]

...                    //添加光照         var directionLight= new Laya.DirectionLight();         this.scene.addChild(directionLight);         directionLight.color = new Laya.Vector3(1, 1, 1);         directionLight.transform.rotate(new Laya.Vector3( ...

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

36. 照相机-正交相机 [ 91%]

...//正交投影垂直矩阵尺寸 camera.orthographicVerticalSize = 10; var directionLight = scene.addChild(new Laya.DirectionLight()); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, fu...

来源: Laya_示例 发布时间: 20251130

37. DirectionLight存在衰减,不符合线光源的特性 [ 91%]

DirectionLight存在衰减,不符合线光源的特性 模型经线光源烘焙,线光源为屏幕下方靠近使用者的位置向屏幕射出的方向,模型亮度从下而上衰减。 附:《示例图片》 和 《复现DEMO》 附件 : --> 复现DEMO.rar 场景.rar 2019-03-15 添加评...

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

38. 3D的动态阴影有代码demo吗? [ 91%]

...代码来加,没阴影出来! 1,场景中加入直射光,开阴影 directionLight.shadow = true; 2,角色设置产生阴影 roleMeshSprite.meshRender.castShadow = true; 3,场景设置接受阴影 sceneMeshSprite.meshRender.receiveShadow = true; 2017-07-14 添加评论 免费帖 --> 分...

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

39. 动画-旧版骨骼动画 [ 91%]

...)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); var plane = scene.addChild(Laya.Sprite3D.load("../....

来源: Laya_示例 发布时间: 20251130

40. 照相机-3D空间转2D空间 [ 91%]

...)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.ad...

来源: Laya_示例 发布时间: 20251130