Debian Codegraph @

examples/viewport_and_scenes/fog_and_distance_culling/README.md

raw symbols SCIP
1 # Fog and Distance Culling
2
3 Demo of `TCastleScene.DistanceCulling`, especially useful when you have fog. We can avoid rendering objects that are too far to be visible (covered by fog). It's a useful optimization when you have a dense fog, and a background that has the same color as the fog.
4
5 This loads `data/fog_culling_final.x3dv` X3D file.
6
7 Press [Ctrl + F] to toggle DistanceCulling (and fog display) on/off.
8
9 Press [Ctrl + C] to toggle per-shape frustum culling on/off, ths also makes a difference in this demo.
10
11 Using [Castle Game Engine](https://castle-engine.io/).
12
13 ## Building
14
15 Compile by:
16
17 - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_.
18
19 - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory.
20
21 - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `fog_and_distance_culling_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus).
22
23 - Or use [Delphi](https://www.embarcadero.com/products/Delphi). Open in Delphi `fog_and_distance_culling_standalone.dproj` file and compile / run from Delphi. See [CGE and Delphi](https://castle-engine.io/delphi) documentation for details.