This repository was archived by the owner on Aug 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +24
-29
lines changed Expand file tree Collapse file tree 5 files changed +24
-29
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ Scene 作为场景单元,可以方便的进行实体树管理,尤其是大
15
15
16
16
在 ** [ 资产面板] ( ${docs}assets-interface ) ** 右键(或资产面板右上角 + 号)创建场景,双击场景可以切换过去:
17
17
18
- ![ Untitled ] ( https://mdn .alipayobjects.com/rms/afts/img/A*3KX4QKXgZZAAAAAAAAAAAAAAARQnAQ/original/Untitled .gif )
18
+ ![ scene-switch ] ( https://gw .alipayobjects.com/zos/OasisHub/eef870a7-2630-4f74-8c0e-478696a553b0/2024-03-19%25252018.04.02 .gif )
19
19
20
20
### 属性面板
21
21
22
- <img src =" https://gw.alipayobjects.com/zos/OasisHub/0b263741-c368-45c4-8904-c066a345d567 /image-20240221194134544 .png " alt =" image-20240221194134544 " style =" zoom :50% ;" />
22
+ <img src =" https://gw.alipayobjects.com/zos/OasisHub/4cab176f-a274-4d97-a98d-334f6bc611ac /image-20240319180602935 .png " alt =" image-20240319180602935 " style =" zoom :50% ;" />
23
23
24
24
### 环境光
25
25
@@ -37,7 +37,7 @@ Scene 作为场景单元,可以方便的进行实体树管理,尤其是大
37
37
38
38
可以给整个场景增加 ** 线性、指数、指数平方** 3 种雾化:
39
39
40
- < img src = " https://gw.alipayobjects.com/zos/OasisHub/5a713502-18b2-45eb-af56-d6530a340581/fog. gif " alt = " fog " style = " zoom : 100 % ; " />
40
+ ![ Fog ] ( https://gw.alipayobjects.com/zos/OasisHub/224fbc16-e60c-47ca-845b-5f7c09563c83/2024-03-19%25252018.08.23. gif )
41
41
42
42
43
43
## 脚本使用
Original file line number Diff line number Diff line change @@ -8,18 +8,17 @@ label: Graphics/Light
8
8
9
9
** 方向光** 表示的是光线从以某个方向均匀射出,光线之间是平行的,太阳照射在地球表面的光可以认为是方向光,因为太阳和地球距离的远大于地球半径,所以照射在地球的阳光可以看作是来自同一个方向的一组平行光,即方向光。
10
10
11
- <img src =" https://gw.alipayobjects.com/zos/OasisHub/93d8b5ba-6c3d-498d-a343-ec976ba39978 /image-20231009113534494 .png " alt =" image-20231009113534494 " style =" zoom :50% ;" />
11
+ <img src =" https://gw.alipayobjects.com/zos/OasisHub/a7f8b3f7-1a5f-4a56-8e57-1636a72aa1fb /image-20240319173643671 .png " alt =" image-20240319173643671 " style =" zoom :50% ;" />
12
12
13
13
方向光有 3 个主要个特性:_ 颜色_ ([ color] ( ${api}core/DirectLight#color ) )、_ 强度_ ([ intensity] ( ${api}core/DirectLight#intensity ) )、_ 方向_ ([ direction] ( ${api}core/DirectLight#direction ) )。_ 方向_ 则由方向光所在的节点的朝向表示。
14
14
15
15
| 属性 | 作用 |
16
16
| :-------- | :------------------------------- |
17
17
| Intensity | 控制平行光的强度,** 值越高越亮** |
18
18
| Color | 控制平行光的颜色,默认白色 |
19
+ | Culling Mask | 控制灯光需要照亮的物体,默认 Everything。 需要配合 Entity 的 Layer 来使用 |
19
20
20
- ## 编辑器使用
21
21
22
- <img src =" https://gw.alipayobjects.com/zos/OasisHub/b554d6f8-c9a4-48a9-9dd3-475dbf63ae55/image-20231009113622354.png " alt =" image-20231009113622354 " style =" zoom :50% ;" />
23
22
24
23
## 脚本使用
25
24
Original file line number Diff line number Diff line change @@ -8,19 +8,16 @@ label: Graphics/Light
8
8
9
9
** 点光源** 存在于空间中的一点,由该点向四面八方发射光线,比如生活中的灯泡就是点光源。
10
10
11
- <img src =" https://gw.alipayobjects.com/zos/OasisHub/f0d42119-4ebf-4214-a9c1-154e6c00be65 /image-20231009113806918 .png " alt =" image-20231009113806918 " style =" zoom :50% ;" />
11
+ <img src =" https://gw.alipayobjects.com/zos/OasisHub/3eb4bc88-fc7e-4957-83a4-dfb7dd678af5 /image-20240319174317201 .png " alt =" image-20240319174317201 " style =" zoom :50% ;" />
12
12
13
13
点光源有 3 个主要特性:_ 颜色_ ([ color] ( ${api}core/PointLight#color ) )、_ 强度_ ([ intensity] ( ${api}core/PointLight#intensity ) )、_ 有效距离_ ([ distance] ( ${api}core/PointLight#distance ) ))。超过有效距离的地方将无法接受到点光源的光线,并且离光源越远光照强度也会逐渐降低。
14
14
15
- | 属性 | 作用 |
16
- | :-------- | :------------------------------- |
17
- | Intensity | 控制点光源的强度,** 值越高越亮** |
18
- | Color | 控制点光源的颜色,默认白色 |
19
- | Distance | 有效距离,光照强度随距离衰减 |
20
-
21
- ### 编辑器使用
22
-
23
- <img src =" https://gw.alipayobjects.com/zos/OasisHub/5d8e7211-aff1-4911-85ac-844915976ef0/image-20231009113830843.png " alt =" image-20231009113830843 " style =" zoom :50% ;" />
15
+ | 属性 | 作用 |
16
+ | :----------- | :------------------------------------------------------------------------ |
17
+ | Intensity | 控制点光源的强度,** 值越高越亮** |
18
+ | Color | 控制点光源的颜色,默认白色 |
19
+ | Distance | 有效距离,光照强度随距离衰减 |
20
+ | Culling Mask | 控制灯光需要照亮的物体,默认 Everything。 需要配合 Entity 的 Layer 来使用 |
24
21
25
22
### 脚本使用
26
23
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ label: Graphics/Light
10
10
11
11
## 光照与阴影
12
12
13
+ <img src =" https://gw.alipayobjects.com/zos/OasisHub/bf6acb06-c026-4a36-b243-0b39a759624c/image-20240319174904033.png " alt =" image-20240319174904033 " style =" zoom :50% ;" />
14
+
13
15
基于这样的原理就比较好理解在 ` Light ` 组件中有关阴影的各项属性设置:
14
16
15
17
| 参数 | 应用 |
@@ -28,7 +30,7 @@ label: Graphics/Light
28
30
29
31
除了上述位于 ` Light ` 组件当中的阴影配置外,还有一些有关阴影的全局配置位于 ` Scene ` 当中:
30
32
31
- <img src =" https://gw.alipayobjects.com/zos/OasisHub/0b8707a9-5084-4e87-b530-897bcd37c16b/shadow.gif " alt =" shadow " style =" zoom :100 % ;" />
33
+ <img src =" https://gw.alipayobjects.com/zos/OasisHub/05b00536-63c3-42f4-b89f-1f3270aa375e/image-20240319175051723.png " alt =" image-20240319175051723 " style =" zoom :50 % ;" />
32
34
33
35
| 参数 | 应用 |
34
36
| :-- | :-- |
Original file line number Diff line number Diff line change @@ -8,21 +8,18 @@ label: Graphics/Light
8
8
9
9
** 聚光灯** 就像现实生活中的手电筒发出的光,从某个点朝特定方向锥形发射。
10
10
11
- <img src =" https://gw.alipayobjects.com/zos/OasisHub/1695c247-a6f1-43c5-8cfe-cb89c507cf31 /image-20231009114221422 .png " alt =" image-20231009114221422 " style =" zoom :50% ;" />
11
+ <img src =" https://gw.alipayobjects.com/zos/OasisHub/93b85357-e67b-4c80-b74e-f116250958a7 /image-20240319174652884 .png " alt =" image-20240319174652884 " style =" zoom :50% ;" />
12
12
13
13
聚光灯有几个主要特性:_ 颜色_ ([ color] ( ${api}core/SpotLight#color ) )、_ 强度_ ([ intensity] ( ${api}core/SpotLight#intensity ) )、_ 有效距离_ ([ distance] ( ${api}core/SpotLight#distance ) )、_ 散射角度_ ([ angle] ( ${api}core/SpotLight#angle ) )、_ 半影衰减角度_ ([ penumbra] ( ${api}core/SpotLight#penumbra ) )。散射角度表示与光源朝向夹角小于多少时有光线,半影衰减角度表示在有效的夹角范围内,随着夹角增大光照强度逐渐衰减至 0 。
14
14
15
- | 属性 | 作用 |
16
- | :--------------------- | :------------------------------------------------------- |
17
- | Angle(散射角度) | 表示与光源朝向夹角小于多少时有光线 |
18
- | Intensity(强度) | 控制聚光灯的强度,** 值越高越亮** |
19
- | Color(颜色) | 控制聚光灯的颜色 |
20
- | Distance(距离) | 有效距离,光照强度随距离衰减 |
21
- | Penumbra(半影衰减角度) | 表示在有效的夹角范围内,随着夹角增大光照强度逐渐衰减至 0 |
22
-
23
- ### 编辑器使用
24
-
25
- <img src =" https://gw.alipayobjects.com/zos/OasisHub/d3ff9ed7-ccba-4112-ba73-568b6b203549/image-20231009114257367.png " alt =" image-20231009114257367 " style =" zoom :50% ;" />
15
+ | 属性 | 作用 |
16
+ | :--------------------- | :------------------------------------------------------------------------ |
17
+ | Angle(散射角度) | 表示与光源朝向夹角小于多少时有光线 |
18
+ | Intensity(强度) | 控制聚光灯的强度,** 值越高越亮** |
19
+ | Color(颜色) | 控制聚光灯的颜色 |
20
+ | Distance(距离) | 有效距离,光照强度随距离衰减 |
21
+ | Penumbra(半影衰减角度) | 表示在有效的夹角范围内,随着夹角增大光照强度逐渐衰减至 0 |
22
+ | Culling Mask | 控制灯光需要照亮的物体,默认 Everything。 需要配合 Entity 的 Layer 来使用 |
26
23
27
24
### 脚本使用
28
25
You can’t perform that action at this time.
0 commit comments