Struct amethyst_renderer::MaterialPrefab[][src]

pub struct MaterialPrefab<F> where
    F: Format<Texture, Options = TextureMetadata>, 
{ pub albedo: Option<TexturePrefab<F>>, pub albedo_offset: TextureOffset, pub albedo_id: Option<u64>, pub emission: Option<TexturePrefab<F>>, pub emission_offset: TextureOffset, pub emission_id: Option<u64>, pub normal: Option<TexturePrefab<F>>, pub normal_offset: TextureOffset, pub normal_id: Option<u64>, pub metallic: Option<TexturePrefab<F>>, pub metallic_offset: TextureOffset, pub metallic_id: Option<u64>, pub roughness: Option<TexturePrefab<F>>, pub roughness_offset: TextureOffset, pub roughness_id: Option<u64>, pub ambient_occlusion: Option<TexturePrefab<F>>, pub ambient_occlusion_offset: TextureOffset, pub ambient_occlusion_id: Option<u64>, pub caveat: Option<TexturePrefab<F>>, pub caveat_offset: TextureOffset, pub caveat_id: Option<u64>, pub transparent: bool, pub alpha_cutoff: f32, }

PrefabData for loading Materials

Type parameters:

  • F: Format to use for loading Textures

Fields

Diffuse map.

Diffuse texture offset

Albedo texture animation index, for addition to MaterialTextureSet

Emission map.

Emission texture offset

Emission texture animation index, for addition to MaterialTextureSet

Normal map.

Normal texture offset

Normal texture animation index, for addition to MaterialTextureSet

Metallic map.

Metallic texture offset

Metallic texture animation index, for addition to MaterialTextureSet

Roughness map.

Roughness texture offset

Roughness texture animation index, for addition to MaterialTextureSet

Ambient occlusion map.

Ambient occlusion texture offset

Ambient occlusion texture animation index, for addition to MaterialTextureSet

Caveat map.

Caveat texture offset

Caveat texture animation index, for addition to MaterialTextureSet

Set material as Transparent

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

Trait Implementations

impl<F: Debug> Debug for MaterialPrefab<F> where
    F: Format<Texture, Options = TextureMetadata>, 
[src]

Formats the value using the given formatter. Read more

impl<F: Clone> Clone for MaterialPrefab<F> where
    F: Format<Texture, Options = TextureMetadata>, 
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<F> Default for MaterialPrefab<F> where
    F: Format<Texture, Options = TextureMetadata>, 
[src]

Returns the "default value" for a type. Read more

impl<'a, F> PrefabData<'a> for MaterialPrefab<F> where
    F: Format<Texture, Options = TextureMetadata> + Sync + Clone
[src]

SystemData needed to perform the load

The result type returned by the load operation

Load the data for this prefab onto the given Entity Read more

Trigger asset loading for any sub assets. Read more

Auto Trait Implementations

impl<F> Send for MaterialPrefab<F>

impl<F> Sync for MaterialPrefab<F> where
    F: Sync