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

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

31. 高级应用-渲染纹理 [ 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_示例 发布时间: 20240930

32. 射线检测-放置物体 [ 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_示例 发布时间: 20240930

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

34. 照相机-正交相机 [ 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_示例 发布时间: 20240930

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

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

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

36. 动画-旧版骨骼动画 [ 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_示例 发布时间: 20240930

37. 照相机-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_示例 发布时间: 20240930

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

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

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

39. 问下,3D模型导出有什么要求 [ 90%]

...是场景中没有光照,物体的环境光颜色是不会显示的! var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Vector3(0.6, 0.6, 0.6); directionLight.diffu...

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

40. 射线检测-点击行走 [ 90%]

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