MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / set_fog_density

Method set_fog_density

native/shared/src/renderer/mod.rs:7784–7786  ·  view source on GitHub ↗

Fog density. 0 (default) = fog disabled. 0.02 = gentle atmospheric haze, 0.1 = heavy smog, 1+ = soup. Applied exponentially over world-space distance.

(&mut self, density: f32)

Source from the content-addressed store, hash-verified

7782 /// atmospheric haze, 0.1 = heavy smog, 1+ = soup. Applied
7783 /// exponentially over world-space distance.
7784 pub fn set_fog_density(&mut self, density: f32) {
7785 self.fog_density = density.max(0.0);
7786 }
7787
7788 /// Fog altitude-based falloff. `height_ref` is the world Y
7789 /// below which density stays at the full value; `falloff_rate`

Callers 5

bloom_set_fogFunction · 0.80
bloom_set_fogFunction · 0.80
bloom_set_fogFunction · 0.80
bloom_set_fogFunction · 0.80
bloom_set_fogFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected