Struct ColoredLight
#[non_exhaustive]pub struct ColoredLight {
pub at: [f64; 3],
pub rgb: u32,
pub radius: f32,
pub intensity: f32,
}Expand description
A camera-local visual light, with no gameplay light or shadow writes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.at: [f64; 3]The light’s position in blocks.
rgb: u32The colour as 0xRRGGBB.
radius: f32How far it reaches, in blocks.
intensity: f32The light’s strength.
Implementations§
§impl ColoredLight
impl ColoredLight
Trait Implementations§
§impl Clone for ColoredLight
impl Clone for ColoredLight
§fn clone(&self) -> ColoredLight
fn clone(&self) -> ColoredLight
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColoredLight
§impl Debug for ColoredLight
impl Debug for ColoredLight
§impl PartialEq for ColoredLight
impl PartialEq for ColoredLight
impl StructuralPartialEq for ColoredLight
Auto Trait Implementations§
impl Freeze for ColoredLight
impl RefUnwindSafe for ColoredLight
impl Send for ColoredLight
impl Sync for ColoredLight
impl Unpin for ColoredLight
impl UnsafeUnpin for ColoredLight
impl UnwindSafe for ColoredLight
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