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

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

1. 如何为灯光添加阴影(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 100%]

...的demo地址: 灯光方面的设置: ```typescript // Use soft shadow. directionLight.shadowMode = ShadowMode.SoftLow; // Set shadow max distance from camera. directionLight.shadowDistance = 3; // Set shadow resolution. directionLight.shadowResolution = 1024; // Set shadow cascade mode. direction...

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

2. 如何为灯光添加阴影(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 97%]

...的demo地址: 灯光方面的设置: ```typescript // Use soft shadow. directionLight.shadowMode = Laya.ShadowMode.SoftLow; // Set shadow max distance from camera. directionLight.shadowDistance = 3; // Set shadow resolution. directionLight.shadowResolution = 1024; // Set shadow cascade mode. dire...

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

3. 如何为灯光添加阴影(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 96%]

...的demo地址: 灯光方面的设置: ```typescript // Use soft shadow. directionLight.shadowMode = Laya.ShadowMode.SoftLow; // Set shadow max distance from camera. directionLight.shadowDistance = 3; // Set shadow resolution. directionLight.shadowResolution = 1024; // Set shadow cascade mode. dire...

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

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

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

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

5. 3D动态阴影 [ 90%]

...回复 183*****755 赞同来自: 1,场景中加入直射光,开阴影 directionLight.shadow = true; 2,角色设置产生阴影  roleMeshSprite.meshRender.castShadow = true; 3,场景设置接受阴影  sceneMeshSprite.meshRender.receiveShadow = true; 2017-05-23 0 1 分享 微博 QZONE 微...

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

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

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. laya.d3.core.light.DirectionLight [ 88%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames DirectionLightProperties | Methods | Events | Constants Packagelaya.d3.core.lightClasspublic class DirectionLightInheritanceDirectionLight LightSprite Sprite3D ComponentNode Node EventDispatcher Object DirectionLight 类...

来源: laya_api 发布时间: 20170929

8. 高级应用-实时阴影 [ 88%]

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

9. Laya2.3.0 阴影BUG [ 85%]

Laya2.3.0 阴影BUG Laya2.3.0 阴影有如下几个问题   1.DirectionLight先设置shadow=true,再添加到场景,阴影不会出现,如下。反之是可以出现阴影的。(目前仅限2.3.0) //灯光开启阴影 directionLight.shadow = true this.addChild(directionLight)2.可产生...

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

10. laya.d3.core.light.DirectionLight [ 85%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames DirectionLightProperties | Methods | Events Packagelaya.d3.core.lightClasspublic class DirectionLightInheritanceDirectionLight LightSprite Sprite3D Node EventDispatcher Object DirectionLight 类用于创建平行光。 Pub...

来源: Laya2.0_api 发布时间: 20190513