大约有 651 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0049 秒)
Laya_社区(605) Laya2.0_文档(14) Laya3.0_文档(13) Laya3.0_api(10) Laya2.0_api(4) laya_api(4) Laya_示例(1)
...现,如下。反之是可以出现阴影的。(目前仅限2.3.0) //灯光开启阴影 directionLight.shadow = true this.addChild(directionLight)2.可产生阴影的物体穿过平面,会在反向出现阴影,如图 // 穿过产生阴影 3.物体不能同时产生和接受阴影,...
来源: Laya_社区 发布时间: 20191129
...向光 Author: Charley、孟星煜 在阅读本文档前,请先阅读2D灯光的基类文档《2D灯光与网格》。 2D方向光(DirectionLight2D)在游戏开发中用于模拟来自特定方向的平行光源,常用于表现阳光或月光等大范围均匀照射的光线效果。它能...
来源: Laya3.0_文档 发布时间: 20250214
...容,最好和静态内容分开,以便只缓存静态内容的理解 3D灯光阴影无效 我想动态改自定义shader里的值,应该怎么写?? 2.6版本阴影在浏览器正常,在真机上直接没了?求解答 想问一下Laya2.6.0版本是否不支持半透明和透明的shader...
来源: Laya_社区 发布时间: 20170523
....Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); //灯光开启阴影 directionLight.shadow = true; //可见阴影距离 directionLight.shadowDistance = 3; //生成阴影贴图尺寸 directionLight.shadowResolution = 2048; //生成阴影贴图数量 directionLight.shadowPSSMC...
来源: Laya_示例 发布时间: 20250219
...t/AreaLightCom" AreaLightCom Class AreaLightCom LightSprite 类用于创建灯光的父类。 Hierarchy Light AreaLightCom Index Constructors constructor Properties _extra _singleton color owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id intensity lightWorldMatrix lightma...
来源: Laya3.0_api 发布时间: 20231115
...Color Inherited from Light.color Defined in laya/d3/core/light/Light.ts:61 灯光颜色。 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in l...
来源: Laya3.0_api 发布时间: 20231115
...ChildAt(0) as Laya.MeshSprite3D).meshRender.castShadow = true; 我添加的灯光,然后在地表上设置接受阴影,然后在把模型的设置成产生阴影 2017-09-12 0 0 分享 微博 QZONE 微信 ebaww 赞同来自: directionLight.ambientColor = new Laya.Vector3(0.7, 0.6, 0.6); 把环...
来源: Laya_社区 发布时间: 20170912
...功能还在内测和性能优化中。 可以自行设置以下参数 //灯光开启阴影 directionLight.shadow = true; //可见阴影距离 directionLight.shadowDistance = 3; //生成阴影贴图尺寸 directionLight.shadowResolution = 2048; //生成阴影贴图数量 directionLight.shadowPSSMCou...
来源: Laya_社区 发布时间: 20170714
...n 文件,或者文件读取失败,请检查后重新编译。 3d 添加灯光 模型变的黑呼呼的 很多黑面 lh文件内meshSprite添加阴影属性无效 unity导出的场景不显示实时阴影 为什么给Sprite容器添加点击事件没反应 图片添加点击事件 有的不生效...
来源: Laya_社区 发布时间: 20190328
...Color Inherited from Light.color Defined in laya/d3/core/light/Light.ts:61 灯光颜色。 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in l...
来源: Laya3.0_api 发布时间: 20231115