[][src]Struct amethyst_rendy::formats::mtl::MaterialPrefab

pub struct MaterialPrefab {
    pub albedo: Option<TexturePrefab>,
    pub emission: Option<TexturePrefab>,
    pub normal: Option<TexturePrefab>,
    pub metallic_roughness: Option<TexturePrefab>,
    pub ambient_occlusion: Option<TexturePrefab>,
    pub cavity: Option<TexturePrefab>,
    pub uv_offset: TextureOffset,
    pub transparent: bool,
    pub alpha_cutoff: f32,
    // some fields omitted
}

PrefabData for loading Materials

Fields

albedo: Option<TexturePrefab>

Diffuse map.

emission: Option<TexturePrefab>

Emission map.

normal: Option<TexturePrefab>

Normal map.

metallic_roughness: Option<TexturePrefab>

Metallic-roughness map. (B channel metallic, G channel roughness)

ambient_occlusion: Option<TexturePrefab>

Ambient occlusion map.

cavity: Option<TexturePrefab>

Cavity map.

uv_offset: TextureOffset

Texture offset.

transparent: bool

Set material as Transparent

alpha_cutoff: f32

Alpha cutoff: the value below which we do not draw the pixel

Methods

impl MaterialPrefab[src]

pub fn clone_loaded(&self) -> Self[src]

Clone the loaded material prefab to a new instance with an independent transparency value.

Trait Implementations

impl Default for MaterialPrefab[src]

impl Debug for MaterialPrefab[src]

impl Serialize for MaterialPrefab[src]

impl<'de> Deserialize<'de> for MaterialPrefab[src]

impl<'a> PrefabData<'a> for MaterialPrefab[src]

type SystemData = (WriteStorage<'a, Handle<Material>>, WriteStorage<'a, Transparent>, ReadExpect<'a, MaterialDefaults>, <TexturePrefab as PrefabData<'a>>::SystemData, ReadExpect<'a, Loader>, Read<'a, AssetStorage<Material>>)

SystemData needed to perform the load

type Result = ()

The result type returned by the load operation

Auto Trait Implementations

impl Send for MaterialPrefab

impl Sync for MaterialPrefab

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

fn adapt_into(self) -> D[src]

Convert the source color to the destination color using the bradford method by default Read more

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Supports<T> for T

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Erased for T

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> Any for T where
    T: Any

impl<T> TryDefault for T where
    T: Default

fn unwrap_default() -> Self

Calls try_default and panics on an error case.

impl<T> Config for T where
    T: Deserialize<'a> + Serialize + Default
[src]