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

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

1. Mesh网格-网格加载 [ 100%]

...)); 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 layaMonkey = scene.addChild(new La...

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

2. VR场景-VR地球 [ 99%]

...a.BaseCamera.CLEARFLAG_SKY; vrCamera.addComponent(VRCameraMoveScript); 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 earth = scene.addChild(Laya.Sprite3D.load("../../res/...

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

3. 灯光-方向光 [ 98%]

..., 0), true, false); camera.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 grid = scene.addChild(Laya.Sprite3D.load("../...

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

4. 高级应用-Laya3D与网页混合 [ 98%]

... 0), true, false); //3.清除照相机颜色 camera.clearColor = null; 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 layaMonkey = scene.addChild(Laya.Sprite3D.load(...

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

5. 材质-BlinnPhong材质加载 [ 98%]

...)); 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 layaMonkey = scene.addChild(new Laya.MeshSprite3D...

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

6. 3D阴影无法渲染出来 [ 97%]

3D阴影无法渲染出来 //添加方向光 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); directionLight.shadow = true; directionLight.shadowDistance = 3; directionLight...

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

7. 高级应用-实时阴影 [ 96%]

...)); 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(1, 1, 1); //灯光开启阴影 directionLight.shadow = true; //可...

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

8. 射线检测-放置物体 [ 96%]

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

9. DirectionLight介绍(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 95%]

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

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

10. DirectionLight介绍(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 95%]

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

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