1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! The dynamic GI volume's placement, as the game describes it to
//! `Scene::set_dynamic_gi_volume`. Metres.
use Vec3;
/// Where a scene's dynamic diffuse GI probes lie: a lattice of probes the
/// game places over the part of its world it wants lit by bounced light, as
/// RTXGI's and Wicked Engine's DDGI volumes are. Each frame traces rays
/// from the probes through the scene, keeping each probe's irradiance and
/// the distances to what surrounds it up to date, and surfaces within the
/// lattice take their indirect diffuse light from the probes about them
/// (`Settings::dynamic_gi` sets how many rays). How the probes are kept up
/// is SGL3D's.
///
/// Probes cost texture memory, a few kilobytes each, and rays each frame:
/// a few for a probe whose light has settled, up to the quality's most
/// while it changes. A spacing of one to a few metres suits rooms and
/// streets; a lattice need not cover the world, and surfaces beyond it keep
/// their other indirect light.