godot-start/doc/demo11_particle_light/particle.md

46 lines
1.7 KiB
Markdown
Raw Normal View History

2022-07-13 10:32:34 +00:00
# 1. 光照系统
- godot 的 2D 动态光照
- 首先看看 Demo 的预览效果。可以看到,当我们在 Demo 中移动光源的位置,小人和场景也会随之表现出不同光照的情景
2022-07-15 10:46:42 +00:00
![Image text](image/light1.gif)
2022-07-13 10:32:34 +00:00
- 那么它和普通的 Sprite 有什么区别呢? 通过对比不难看出它们的差别主要是集中在材质上面。小人使用了自定义的 mat_normal 材质
![Image text](image/light2.jpg)
2022-07-13 10:35:02 +00:00
2022-07-13 10:32:34 +00:00
```
在物理世界中,我们看到的物体的颜色,其实是物体本身反射光线的颜色,因为物体的材质不同,会吸收部分不同的颜色分量而导致我们看到的物体颜色不同。
模拟光照的过程实际上就是模拟整个光的传播过程。
```
# 2. 粒子系统
2021-10-08 10:58:02 +00:00
![Image text](image/particle1.png)
![Image text](image/particle2.png)
![Image text](image/particle3.png)
![Image text](image/particle4.png)
![Image text](image/particle5.png)
![Image text](image/particle6.png)
![Image text](image/particle7.png)
![Image text](image/particle8.png)
![Image text](image/particle9.png)
![Image text](image/particle10.png)
![Image text](image/particle11.png)
![Image text](image/particle12.png)
![Image text](image/particle13.png)
![Image text](image/particle14.png)
![Image text](image/particle15.png)
![Image text](image/particle16.png)
![Image text](image/particle17.png)
![Image text](image/particle18.png)
![Image text](image/particle19.png)
![Image text](image/particle20.png)
![Image text](image/particle21.png)
![Image text](image/particle22.png)
![Image text](image/particle23.png)
![Image text](image/particle24.png)
![Image text](image/particle25.png)
![Image text](image/particle26.png)
![Image text](image/particle27.png)