pub struct Material {
pub tint: Rgb,
}Expand description
Per-object shading parameters. 每个对象的着色参数。
First version only carries a tint; texture tint and additional surface parameters are added without breaking the constructor shape. 首个版本只携带一个色调;纹理色调和额外的表面参数会在不破坏构造函数形态的前提下添加。
Fields§
§tint: RgbMultiplicative tint applied to the sampled texture or solid color. 应用于采样纹理或纯色的倍增色调。
Implementations§
Trait Implementations§
impl Copy for Material
impl StructuralPartialEq for Material
Auto Trait Implementations§
impl Freeze for Material
impl RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl UnsafeUnpin 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