pub struct SpriteCardMaterial {Show 13 fields
pub base_texture: Option<String>,
pub surface_prop: Option<String>,
pub sprite_origin: Vec2,
pub additive: bool,
pub over_bright_factor: f32,
pub vertex_color: bool,
pub vertex_alpha: bool,
pub alpha: f32,
pub translucent: bool,
pub no_cull: bool,
pub mod_2x: bool,
pub opaque: bool,
pub intensity: f32,
}Fields§
§base_texture: Option<String>Defines an albedo texture.
surface_prop: Option<String>Links the surface to a set of physical properties.
sprite_origin: Vec2§additive: bool§over_bright_factor: f32§vertex_color: boolUse computed vertex colors.
vertex_alpha: boolUse computed vertex alpha.
alpha: f32Scales the opacity of an entire material.
translucent: boolSpecifies that the material should be partially see-through.
no_cull: boolDisables backface culling.
mod_2x: boolMultiply the output by 2x.
opaque: boolAre we opaque? Default 0.
intensity: f32Multiply output RGB by intensity factor.
Trait Implementations§
Source§impl Clone for SpriteCardMaterial
impl Clone for SpriteCardMaterial
Source§fn clone(&self) -> SpriteCardMaterial
fn clone(&self) -> SpriteCardMaterial
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 SpriteCardMaterial
impl Debug for SpriteCardMaterial
Source§impl<'de> Deserialize<'de> for SpriteCardMaterial
impl<'de> Deserialize<'de> for SpriteCardMaterial
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 SpriteCardMaterial
impl RefUnwindSafe for SpriteCardMaterial
impl Send for SpriteCardMaterial
impl Sync for SpriteCardMaterial
impl Unpin for SpriteCardMaterial
impl UnwindSafe for SpriteCardMaterial
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