pub struct UnlitGenericMaterial {Show 15 fields
pub base_texture: Option<String>,
pub surface_prop: Option<String>,
pub model: bool,
pub color: Vec3,
pub alpha: f32,
pub alpha_test: bool,
pub alpha_test_reference: f32,
pub no_cull: bool,
pub translucent: bool,
pub bump_map: Option<String>,
pub ignore_z: bool,
pub no_fog: bool,
pub receive_flash_light: bool,
pub single_pass_flash_light: bool,
pub no_full_bright: bool,
}Fields§
§base_texture: Option<String>Defines an albedo texture.
surface_prop: Option<String>Links the surface to a set of physical properties.
model: boolTells this material is used for models and not brushes.
color: Vec3Independently scales the red, green and blue channels of an albedo.
alpha: f32Scales the opacity of an entire material.
alpha_test: boolSpecifies a mask to use to determine binary opacity.
alpha_test_reference: f32Specifies a mask to use to determine binary opacity.
no_cull: boolDisables backface culling.
translucent: boolSpecifies that the material should be partially see-through.
bump_map: Option<String>Specifies a texture that will provide three-dimensional lighting information for a material.
ignore_z: boolIgnore z filtering
no_fog: boolPrevents fog from overdrawing a material.
receive_flash_light: boolAllow the player’s flashlight to illuminate the material.
single_pass_flash_light: boolPossibly used to allow shadows to form from this decal.
no_full_bright: boolTrait Implementations§
Source§impl Clone for UnlitGenericMaterial
impl Clone for UnlitGenericMaterial
Source§fn clone(&self) -> UnlitGenericMaterial
fn clone(&self) -> UnlitGenericMaterial
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 UnlitGenericMaterial
impl Debug for UnlitGenericMaterial
Source§impl<'de> Deserialize<'de> for UnlitGenericMaterial
impl<'de> Deserialize<'de> for UnlitGenericMaterial
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UnlitGenericMaterial
impl RefUnwindSafe for UnlitGenericMaterial
impl Send for UnlitGenericMaterial
impl Sync for UnlitGenericMaterial
impl Unpin for UnlitGenericMaterial
impl UnwindSafe for UnlitGenericMaterial
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