pub struct UnityFog {
pub enabled: bool,
pub mode: i64,
pub color: [f32; 4],
pub density: f32,
pub start: f32,
pub end: f32,
}Expand description
The scene’s fog as RenderSettings stores it: whether it is on (m_Fog), its mode (m_FogMode: 1 linear, 2
exponential, 3 exponential squared), its colour, density (exponential modes) and the linear mode’s start and
end.
Fields§
§enabled: boolm_Fog.
mode: i64m_FogMode.
color: [f32; 4]m_FogColor, RGBA.
density: f32m_FogDensity.
start: f32m_LinearFogStart.
end: f32m_LinearFogEnd.
Trait Implementations§
impl StructuralPartialEq for UnityFog
Auto Trait Implementations§
impl Freeze for UnityFog
impl RefUnwindSafe for UnityFog
impl Send for UnityFog
impl Sync for UnityFog
impl Unpin for UnityFog
impl UnsafeUnpin for UnityFog
impl UnwindSafe for UnityFog
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more