pub struct FlareLayer {Show 13 fields
pub map: Option<Map>,
pub count: u32,
pub width: Value,
pub height: Value,
pub uniform: bool,
pub scale_variation: [f32; 2],
pub colour: Value,
pub colour_multiplier: [f32; 4],
pub reflection: Reflection,
pub offset: f32,
pub offset_variation: f32,
pub attenuation_radius: f32,
pub bloom: Option<[f32; 4]>,
}Expand description
One layer of a Flare: count flares of one texture.
Fields§
§map: Option<Map>§count: u32§width: ValueWidth and height (constants), whether the width serves both, and each flare’s random factor between this and 1 per axis.
height: Value§uniform: bool§scale_variation: [f32; 2]§colour: ValueColour (clamped to 0..1) and a multiplier of it (unrestricted).
colour_multiplier: [f32; 4]§reflection: Reflection§offset: f32A scalar multiplier of the offset vector, and each flare’s random factor between this and 1 on it.
offset_variation: f32§attenuation_radius: f32The radius of a sphere around the source within which the layer is attenuated (negative: none).
bloom: Option<[f32; 4]>Trait Implementations§
Source§impl Clone for FlareLayer
impl Clone for FlareLayer
Source§impl Debug for FlareLayer
impl Debug for FlareLayer
Source§impl PartialEq for FlareLayer
impl PartialEq for FlareLayer
Source§impl Serialize for FlareLayer
impl Serialize for FlareLayer
impl StructuralPartialEq for FlareLayer
Auto Trait Implementations§
impl Forget for FlareLayer
impl Freeze for FlareLayer
impl RefUnwindSafe for FlareLayer
impl Send for FlareLayer
impl Sync for FlareLayer
impl Unpin for FlareLayer
impl UnsafeUnpin for FlareLayer
impl UnwindSafe for FlareLayer
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