[][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


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


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 Debug for MaterialPrefab[src]

impl Default 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

impl Serialize for MaterialPrefab[src]

Auto Trait Implementations

impl !RefUnwindSafe for MaterialPrefab

impl Send for MaterialPrefab

impl Sync for MaterialPrefab

impl Unpin for MaterialPrefab

impl !UnwindSafe for MaterialPrefab

Blanket Implementations

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

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

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Config for T where
    T: Deserialize<'a> + Serialize

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized

impl<T> SetParameter for T

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

impl<T> Supports<T> for T

impl<T> TryDefault for T where
    T: Default

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,