Struct re_renderer::mesh::Material
source · pub struct Material {
pub label: DebugLabel,
pub index_range: Range<u32>,
pub albedo: GpuTexture2D,
pub albedo_multiplier: Rgba,
}Fields§
§label: DebugLabel§index_range: Range<u32>Index range within the owning Mesh that should be rendered with this material.
albedo: GpuTexture2DBase color texture, also known as albedo. (not optional, needs to be at least a 1pix texture with a color!)
albedo_multiplier: RgbaFactor applied to the decoded albedo color.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl !UnwindSafe for Material
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more