1
1
# Global Illumination
2
2
3
3
This demo showcases Godot's global illumination systems:
4
- [ GIProbe] ( https://docs.godotengine.org/en/stable/tutorials/3d/gi_probes.html ) ,
5
- [ BakedLightmap] ( https://docs.godotengine.org/en/stable/tutorials/3d/baked_lightmaps.html )
6
- (indirect only and fully baked) and
7
- [ ReflectionProbe] ( https://docs.godotengine.org/en/stable/tutorials/3d/reflection_probes.html ) .
4
+ VoxelGI, SDFGI, ReflectionProbe and screen-space effects like SSAO and SSIL.
8
5
9
6
Use the mouse to look around, <kbd >W</kbd >/<kbd >A</kbd >/<kbd >S</kbd >/<kbd >D</kbd >
10
7
or arrow keys to move.
11
8
12
9
Language: GDScript
13
10
14
- Renderer: GLES 3[ ^ 1 ]
15
-
16
- Check out this demo on the asset library: https://godotengine.org/asset-library/asset/1290
11
+ Renderer: Vulkan
17
12
18
13
## How does it work?
19
14
20
- A glTF scene (which acts as the level mesh) is imported with its ** Light Baking**
21
- option set to ** Gen Lightmaps** .
22
- This is required for BakedLightmap to work (but is not required for GIProbe
23
- or BakedLightmap).
24
-
25
- The level mesh is duplicated several times to allow displaying it with various bake settings:
26
-
27
- - No baking (uses GIProbe or environment lighting).
28
- - Baked indirect lighting. Slower, but allows for real-time shadows to display
29
- on baked surfaces.
30
- - Baked direct * and* indirect lighting. Faster, but does not allow for real-time
31
- shadows to display on baked surfaces.
32
-
33
15
A sphere and box are parented to the camera to showcase dynamic object lighting.
34
16
A ReflectionProbe is parented to the sphere to showcase real-time reflections.
35
17
When the ReflectionProbe is hidden, it is disabled. In this case,
36
- GIProbe or environment lighting will be used to provide fallback reflections.
18
+ VoxelGI, SDFGI or environment lighting will be used to provide fallback reflections.
37
19
38
20
## Screenshots
39
21
@@ -45,7 +27,3 @@ GIProbe or environment lighting will be used to provide fallback reflections.
45
27
map "zdm2" and is
46
28
[ licensed under CC BY 4.0 Unported] ( https://github.com/Calinou/game-maps-obj/blob/master/sauerbraten/zdm2.txt ) .
47
29
The OBJ file which it was converted from is available in the [ game-maps-obj] ( https://github.com/Calinou/game-maps-obj ) repository.
48
-
49
- [ ^ 1 ] : This demo can be made to work with GLES2, but GIProbe will not work.
50
- Additionally, lightmaps have to be rebaked with the ** Atlas > Generate** property
51
- disabled in BakedLightmap.
0 commit comments