pub struct SkyParams {
pub elevation: f32,
pub turbidity: f32,
pub albedo: [f32; 3],
}Expand description
Initial parameters for the sky model.
Fields§
§elevation: f32(Solar) elevation is given in radians. Elevation must be between 0..=π/2.
turbidity: f32Turbidity must be between 1..=10.
albedo: [f32; 3](Ground) albedo must be between 0..=1.
Trait Implementations§
impl Copy for SkyParams
impl StructuralPartialEq for SkyParams
Auto Trait Implementations§
impl Freeze for SkyParams
impl RefUnwindSafe for SkyParams
impl Send for SkyParams
impl Sync for SkyParams
impl Unpin for SkyParams
impl UnwindSafe for SkyParams
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