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

Method set_fog_height_falloff

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

Fog altitude-based falloff. `height_ref` is the world Y below which density stays at the full value; `falloff_rate` controls how fast density drops as you go above it. Default 0.0 / 0.25 gives a natural ground-haze look.

(&mut self, height_ref: f32, falloff_rate: f32)

Source from the content-addressed store, hash-verified

7790 /// controls how fast density drops as you go above it. Default
7791 /// 0.0 / 0.25 gives a natural ground-haze look.
7792 pub fn set_fog_height_falloff(&mut self, height_ref: f32, falloff_rate: f32) {
7793 self.fog_height_ref = height_ref;
7794 self.fog_height_falloff = falloff_rate.max(0.0);
7795 }
7796
7797 /// Chromatic aberration strength — radial RGB-channel split at
7798 /// the screen edges. 0 (default) = off. 0.002 ≈ subtle film

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