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