Skip to main content

RetainedCameraUniforms

Struct RetainedCameraUniforms 

Source
pub struct RetainedCameraUniforms {
Show 36 fields pub proj: [[f32; 4]; 4], pub view_rot: [[f32; 4]; 4], pub view_proj_rte: [[f32; 4]; 4], pub eye_ecef: [f64; 3], pub sun_dir: [f32; 3], pub sun_color: [f32; 3], pub ambient_color: [f32; 3], pub background: Background3D, pub near: f32, pub far: f32, pub ecef_from_icrf: [[f32; 4]; 4], pub moon_dir: [f32; 3], pub day_night_strength: f32, pub city_lights_intensity: f32, pub local_25d_blend: f32, pub sun_visible: bool, pub sun_angular_radius_rad: f32, pub moon_visible: bool, pub moon_angular_radius_rad: f32, pub stars_visible: bool, pub stars_intensity: f32, pub skybox_intensity: f32, pub cloud_layer_opacity: f32, pub local_cloud_opacity: f32, pub cloud_lon_offset_rad: f32, pub time_s: f32, pub realistic_25d_sky: f32, pub night_stars_25d: f32, pub terrain_25d_lighting: f32, pub terrain_25d_shadows: f32, pub shadow_map_size: u32, pub weather_darkness: f32, pub weather_cloud_cover: f32, pub weather_haze: f32, pub cloud_tint_rgb: [f32; 3], pub cloud_25d_cover_boost: f32,
}
Expand description

Camera and lighting uniforms needed for O(1) RTE GPU frame presentation without scene rebuilds.

Fields§

§proj: [[f32; 4]; 4]

Column-major projection matrix.

§view_rot: [[f32; 4]; 4]

Column-major camera rotation matrix with camera positioned at world origin [0, 0, 0].

§view_proj_rte: [[f32; 4]; 4]

Pre-multiplied column-major proj * view_rot matrix.

§eye_ecef: [f64; 3]

High-precision eye position in world / ECEF coordinates.

§sun_dir: [f32; 3]

World-space directional sun direction (pointing from surface toward light).

§sun_color: [f32; 3]§ambient_color: [f32; 3]§background: Background3D§near: f32§far: f32§ecef_from_icrf: [[f32; 4]; 4]

Column-major J2000 ICRF -> ECEF rotation matrix (GMST sidereal rotation).

§moon_dir: [f32; 3]

Normalized ECEF direction toward the Moon.

§day_night_strength: f32

Physical day/night terminator strength (0.0 = flat daylight, 1.0 = full terminator, fades to 0 in 2.5D).

§city_lights_intensity: f32

Deterministic land-masked night city-lights intensity (0.0 = off, auto-fades out in 2.5D).

§local_25d_blend: f32

Seamless 3D -> 2.5D ground morph factor (0.0 = 3D space globe, 1.0 = 2.5D local ground).

§sun_visible: bool

Render physical limb-darkened Sun disc & corona (true by default).

§sun_angular_radius_rad: f32

Visual Sun angular radius in radians (default ~0.018 rad).

§moon_visible: bool

Render NASA textured Moon with real orbital lunar phase (true by default).

§moon_angular_radius_rad: f32

Visual Moon angular radius in radians (default ~0.022 rad).

§stars_visible: bool

Render scientific deep-space starfield skybox (true by default).

§stars_intensity: f32

Brightness multiplier for starfield & Milky Way band.

§skybox_intensity: f32

Brightness multiplier for real telescope skybox cubemap (1.0 default).

§cloud_layer_opacity: f32

Opacity of global 3D cloud-map shell (0.0 = off; auto-fades out in 2.5D).

§local_cloud_opacity: f32

Opacity of local cropped satellite overhead cloud canopy in low-altitude / 2.5D view.

§cloud_lon_offset_rad: f32

Global cloud-map longitudinal scroll offset in radians.

§time_s: f32

Simulation / animation time in seconds.

§realistic_25d_sky: f32

Opt-in physical Rayleigh/Mie 2.5D sky scattering weight (0.0 = classic flat blue 2.5D sky, 1.0 = full physical sky).

§night_stars_25d: f32

Opt-in 2.5D night-sky star & Milky Way visibility sync (0.0 = off, 1.0 = stars appear at night above horizon).

§terrain_25d_lighting: f32

Opt-in physical 2.5D directional sun & DEM relief hillshading weight (0.0 = flat 2.5D terrain, 1.0 = lit).

§terrain_25d_shadows: f32

Opt-in hardware directional shadow-map pass & 9-tap PCF mountain/object shadow strength (0.0 = disabled).

§shadow_map_size: u32

Directional shadow map resolution in pixels (2048 default; lazily allocated only when shadows > 0).

§weather_darkness: f32

Unified weather optical storm/overcast darkness (0.0 = clear sky, 1.0 = brooding storm overcast).

§weather_cloud_cover: f32

Unified weather cloud cover fraction (0.0..=1.0, attenuating sun glare & night stars).

§weather_haze: f32

Unified weather / precipitation atmospheric visibility haze (0.0..=1.0).

§cloud_tint_rgb: [f32; 3]

Weather-modulated cloud RGB tint multiplier ([1.0, 1.0, 1.0] neutral).

§cloud_25d_cover_boost: f32

Weather-driven overhead 2.5D cloud coverage boost (0.0..=1.0).

Trait Implementations§

Source§

impl Clone for RetainedCameraUniforms

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for RetainedCameraUniforms

Source§

impl Debug for RetainedCameraUniforms

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RetainedCameraUniforms

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for RetainedCameraUniforms

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for RetainedCameraUniforms

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,