Struct screen_13::pak::MaterialInfo
source · [−]pub struct MaterialInfo {
pub color: BitmapHandle,
pub normal: BitmapHandle,
pub params: BitmapHandle,
}Expand description
Holds bitmap handles to match what was setup in the asset .toml file.
Fields
color: BitmapHandleThree or four channel base color, aka albedo or diffuse, of the material.
normal: BitmapHandleA standard three channel normal map.
params: BitmapHandleA two channel bitmap of the metalness (red) and roughness (green) PBR parameters.
Optionally has a third channel (blue) for displacement.
Trait Implementations
sourceimpl Clone for MaterialInfo
impl Clone for MaterialInfo
sourcefn clone(&self) -> MaterialInfo
fn clone(&self) -> MaterialInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MaterialInfo
impl Debug for MaterialInfo
sourceimpl<'de> Deserialize<'de> for MaterialInfo
impl<'de> Deserialize<'de> for MaterialInfo
sourcefn 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
sourceimpl PartialEq<MaterialInfo> for MaterialInfo
impl PartialEq<MaterialInfo> for MaterialInfo
sourcefn eq(&self, other: &MaterialInfo) -> bool
fn eq(&self, other: &MaterialInfo) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &MaterialInfo) -> bool
fn ne(&self, other: &MaterialInfo) -> bool
This method tests for !=.
sourceimpl Serialize for MaterialInfo
impl Serialize for MaterialInfo
impl Copy for MaterialInfo
impl StructuralPartialEq for MaterialInfo
Auto Trait Implementations
impl RefUnwindSafe for MaterialInfo
impl Send for MaterialInfo
impl Sync for MaterialInfo
impl Unpin for MaterialInfo
impl UnwindSafe for MaterialInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more