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)
| 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 |
no outgoing calls
no test coverage detected