pub struct RenderSettings {
pub clear_color: Color,
pub light_direction: Vec3,
pub ambient: f32,
pub diffuse: f32,
pub fog: Option<Fog>,
pub cull_backfaces: bool,
}Fields§
§clear_color: Color§light_direction: Vec3Direction from the surface toward the light; normalized once each frame.
ambient: f32§diffuse: f32§fog: Option<Fog>§cull_backfaces: boolTrait Implementations§
Source§impl Clone for RenderSettings
impl Clone for RenderSettings
Source§fn clone(&self) -> RenderSettings
fn clone(&self) -> RenderSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderSettings
impl Debug for RenderSettings
Source§impl Default for RenderSettings
impl Default for RenderSettings
Source§fn default() -> RenderSettings
fn default() -> RenderSettings
Returns the “default value” for a type. Read more
impl Copy for RenderSettings
Auto Trait Implementations§
impl Freeze for RenderSettings
impl RefUnwindSafe for RenderSettings
impl Send for RenderSettings
impl Sync for RenderSettings
impl Unpin for RenderSettings
impl UnwindSafe for RenderSettings
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