Enum TerrainShade
#[non_exhaustive]pub enum TerrainShade {
Model,
Off,
Entity,
}Expand description
How a TerrainModelOptions draw shades faces by their direction. Light never changes it:
a full-bright model stays shaded.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Model
Each quad’s own shade flag, as its model bakes it.
Off
No directional shading.
Entity
Every quad shaded by the level’s two entity light directions.
Trait Implementations§
§impl Clone for TerrainShade
impl Clone for TerrainShade
§fn clone(&self) -> TerrainShade
fn clone(&self) -> TerrainShade
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TerrainShade
§impl Debug for TerrainShade
impl Debug for TerrainShade
§impl Default for TerrainShade
impl Default for TerrainShade
§fn default() -> TerrainShade
fn default() -> TerrainShade
Returns the “default value” for a type. Read more
impl Eq for TerrainShade
§impl PartialEq for TerrainShade
impl PartialEq for TerrainShade
impl StructuralPartialEq for TerrainShade
Auto Trait Implementations§
impl Freeze for TerrainShade
impl RefUnwindSafe for TerrainShade
impl Send for TerrainShade
impl Sync for TerrainShade
impl Unpin for TerrainShade
impl UnsafeUnpin for TerrainShade
impl UnwindSafe for TerrainShade
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