pub struct DirectionalLight3D { /* private fields */ }Expand description
Primary sun/moon directional light and atmospheric sky parameters.
Implementations§
Source§impl DirectionalLight3D
Dynamic Time-of-Day sun and atmospheric sky lighting for DirectionalLight3D.
impl DirectionalLight3D
Dynamic Time-of-Day sun and atmospheric sky lighting for DirectionalLight3D.
Sourcepub fn from_time_of_day(hour: f32) -> Self
pub fn from_time_of_day(hour: f32) -> Self
Source§impl DirectionalLight3D
impl DirectionalLight3D
pub fn get_direction(&self) -> Vec3
pub fn get_mut_direction(&mut self) -> &mut Vec3
pub fn set_direction(&mut self, val: Vec3) -> &mut Self
pub fn get_color(&self) -> Vec3
pub fn get_mut_color(&mut self) -> &mut Vec3
pub fn set_color(&mut self, val: Vec3) -> &mut Self
pub fn get_sky_zenith(&self) -> Vec3
pub fn get_mut_sky_zenith(&mut self) -> &mut Vec3
pub fn set_sky_zenith(&mut self, val: Vec3) -> &mut Self
pub fn get_sky_horizon(&self) -> Vec3
pub fn get_mut_sky_horizon(&mut self) -> &mut Vec3
pub fn set_sky_horizon(&mut self, val: Vec3) -> &mut Self
pub fn get_time_of_day(&self) -> f32
pub fn get_mut_time_of_day(&mut self) -> &mut f32
pub fn set_time_of_day(&mut self, val: f32) -> &mut Self
Trait Implementations§
Source§impl Clone for DirectionalLight3D
impl Clone for DirectionalLight3D
impl Copy for DirectionalLight3D
Source§impl Debug for DirectionalLight3D
impl Debug for DirectionalLight3D
Source§impl Default for DirectionalLight3D
Default golden-sunset directional light.
impl Default for DirectionalLight3D
Default golden-sunset directional light.
Source§impl PartialEq for DirectionalLight3D
impl PartialEq for DirectionalLight3D
impl StructuralPartialEq for DirectionalLight3D
Auto Trait Implementations§
impl Forget for DirectionalLight3D
impl Freeze for DirectionalLight3D
impl Move for DirectionalLight3D
impl RefUnwindSafe for DirectionalLight3D
impl Send for DirectionalLight3D
impl Sync for DirectionalLight3D
impl Unpin for DirectionalLight3D
impl UnsafeUnpin for DirectionalLight3D
impl UnwindSafe for DirectionalLight3D
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