pub struct Tint(pub [f32; 3]);Expand description
Per-instance color tint, written to THREE.InstancedMesh.instanceColor.
[r, g, b] in linear sRGB, each component in [0.0, 1.0]. The renderer
multiplies the base material color by this value, so [1.0, 1.0, 1.0]
(white) is the no-op identity. Entities without this component render at
the batch’s default white tint.
Only meaningful for entities also tagged with InstanceOf — the
standalone-Object3D render path ignores it.
Tuple Fields§
§0: [f32; 3]Trait Implementations§
impl Component for Tint
impl Copy for Tint
impl StructuralPartialEq for Tint
Auto Trait Implementations§
impl Freeze for Tint
impl RefUnwindSafe for Tint
impl Send for Tint
impl Sync for Tint
impl Unpin for Tint
impl UnsafeUnpin for Tint
impl UnwindSafe for Tint
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