Struct amethyst_renderer::Material [−][src]
pub struct Material { pub alpha_cutoff: f32, pub albedo: TextureHandle, pub albedo_offset: TextureOffset, pub emission: TextureHandle, pub emission_offset: TextureOffset, pub normal: TextureHandle, pub normal_offset: TextureOffset, pub metallic: TextureHandle, pub metallic_offset: TextureOffset, pub roughness: TextureHandle, pub roughness_offset: TextureOffset, pub ambient_occlusion: TextureHandle, pub ambient_occlusion_offset: TextureOffset, pub caveat: TextureHandle, pub caveat_offset: TextureOffset, }
Material struct.
Fields
alpha_cutoff: f32
Alpha cutoff: the value at which we do not draw the pixel
albedo: TextureHandle
Diffuse map.
albedo_offset: TextureOffset
Diffuse texture offset
emission: TextureHandle
Emission map.
emission_offset: TextureOffset
Emission texture offset
normal: TextureHandle
Normal map.
normal_offset: TextureOffset
Normal texture offset
metallic: TextureHandle
Metallic map.
metallic_offset: TextureOffset
Metallic texture offset
roughness: TextureHandle
Roughness map.
roughness_offset: TextureOffset
Roughness texture offset
ambient_occlusion: TextureHandle
Ambient occlusion map.
ambient_occlusion_offset: TextureOffset
Ambient occlusion texture offset
caveat: TextureHandle
Caveat map.
caveat_offset: TextureOffset
Caveat texture offset
Trait Implementations
impl Clone for Material
[src]
impl Clone for Material
fn clone(&self) -> Material
[src]
fn clone(&self) -> Material
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Material
[src]
impl PartialEq for Material
fn eq(&self, other: &Material) -> bool
[src]
fn eq(&self, other: &Material) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Material) -> bool
[src]
fn ne(&self, other: &Material) -> bool
This method tests for !=
.
impl Component for Material
[src]
impl Component for Material
type Storage = DenseVecStorage<Self>
Associated storage type for this component.