pub enum LightingMode {
Default,
Flat,
}Expand description
Lighting mode controlling how lit shaders compute surface illumination.
Mirrors Mapbox GL JS v3’s "lights" style-spec model which supports
three light types: ambient, directional, and flat.
Rustial always evaluates one lighting mode per frame. The mode is
selected by LightConfig::mode (default: LightingMode::Default
which combines ambient + directional).
Variants§
Default
Ambient + directional (default). This is the standard 3-D mode
used by Mapbox GL JS when both ambient and directional lights are
present in the "lights" array.
Flat
Flat / unlit. Surfaces are rendered with no shading, using only
the base colour. Equivalent to Mapbox’s "flat" light type.
Trait Implementations§
Source§impl Clone for LightingMode
impl Clone for LightingMode
Source§fn clone(&self) -> LightingMode
fn clone(&self) -> LightingMode
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 LightingMode
impl Debug for LightingMode
Source§impl Default for LightingMode
impl Default for LightingMode
Source§fn default() -> LightingMode
fn default() -> LightingMode
Returns the “default value” for a type. Read more
Source§impl Hash for LightingMode
impl Hash for LightingMode
Source§impl PartialEq for LightingMode
impl PartialEq for LightingMode
impl Copy for LightingMode
impl Eq for LightingMode
impl StructuralPartialEq for LightingMode
Auto Trait Implementations§
impl Freeze for LightingMode
impl RefUnwindSafe for LightingMode
impl Send for LightingMode
impl Sync for LightingMode
impl Unpin for LightingMode
impl UnsafeUnpin for LightingMode
impl UnwindSafe for LightingMode
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