pub struct CelestialBody3D {
pub position: [f64; 3],
pub radius: f64,
pub color: Color,
pub glow: f32,
pub depth_test: bool,
}Expand description
An emissive celestial body drawn as a billboard: the sun, the moon, or a sensor anomaly marker.
Fields§
§position: [f64; 3]Scene-space position of the body centre.
radius: f64Apparent radius in scene units.
color: Color§glow: f32Soft edge width in pixels; 0 draws a hard disc.
depth_test: boolWhether the body participates in depth testing. The sun and stars usually do not.
Trait Implementations§
Source§impl Clone for CelestialBody3D
impl Clone for CelestialBody3D
impl Copy for CelestialBody3D
Source§impl Debug for CelestialBody3D
impl Debug for CelestialBody3D
Source§impl PartialEq for CelestialBody3D
impl PartialEq for CelestialBody3D
impl StructuralPartialEq for CelestialBody3D
Auto Trait Implementations§
impl Forget for CelestialBody3D
impl Freeze for CelestialBody3D
impl Move for CelestialBody3D
impl RefUnwindSafe for CelestialBody3D
impl Send for CelestialBody3D
impl Sync for CelestialBody3D
impl Unpin for CelestialBody3D
impl UnsafeUnpin for CelestialBody3D
impl UnwindSafe for CelestialBody3D
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