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

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

11. 材质-BlinnPhong-漫反射贴图 [ 95%]

...0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya...

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

12. DirectionLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 95%]

# DirectionLight介绍 ###### **version :2.7.0beta Update:2020-6-11** ​ DirectionLight(平行光)与点光区别较大,它有固定的一个方向,可通过弧度值设定,并且也没有衰减和光照范围,会对全场景所有模型进行照亮。3D世界中经常用来模拟固定方...

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

13. 射线检测-点击行走 [ 94%]

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

14. 动画-新版骨骼动画 [ 94%]

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

15. Mesh网格-自定义网格 [ 94%]

...)); camera.transform.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); directionLight.direction = new Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSpri...

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

16. 材质-BlinnPhong-反射贴图 [ 94%]

...0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var textureCube = Laya.TextureCube.load("../../res/threeD...

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

17. 材质-BlinnPhong-高光贴图 [ 93%]

...ctor3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var completeHandler = Laya.Handler.create(this, onCo...

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

18. 2.8.0上默认模型不能产生和接受阴影 [ 93%]

...功能,就没有出现阴影效果。 2.8.0设置阴影的代码: var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new Laya.Vector3(1...

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

19. 材质-BlinnPhong-法线贴图 [ 93%]

...)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); var directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); Laya.loader.create("../../res/threeDimen/staticModel...

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

20. 射线检测-选取物体 [ 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_示例 发布时间: 20241118