Enum TerrainMaterial
#[non_exhaustive]pub enum TerrainMaterial {
Model,
Solid,
Cutout,
CutoutMipped,
}Expand description
Which terrain material a TerrainModelOptions draw uses.
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: solid, cutout or cutout_mipped as its model’s render_type names
it. A translucent quad, or a render type the game doesn’t know, refuses the whole draw.
Solid
Opaque, with no alpha test.
Cutout
Texels under alpha 0.1 discarded, sampled without mipmaps.
CutoutMipped
Texels under alpha 0.5 discarded, sampled with mipmaps.
Trait Implementations§
§impl Clone for TerrainMaterial
impl Clone for TerrainMaterial
§fn clone(&self) -> TerrainMaterial
fn clone(&self) -> TerrainMaterial
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 TerrainMaterial
§impl Debug for TerrainMaterial
impl Debug for TerrainMaterial
§impl Default for TerrainMaterial
impl Default for TerrainMaterial
§fn default() -> TerrainMaterial
fn default() -> TerrainMaterial
Returns the “default value” for a type. Read more
impl Eq for TerrainMaterial
§impl PartialEq for TerrainMaterial
impl PartialEq for TerrainMaterial
impl StructuralPartialEq for TerrainMaterial
Auto Trait Implementations§
impl Freeze for TerrainMaterial
impl RefUnwindSafe for TerrainMaterial
impl Send for TerrainMaterial
impl Sync for TerrainMaterial
impl Unpin for TerrainMaterial
impl UnsafeUnpin for TerrainMaterial
impl UnwindSafe for TerrainMaterial
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