pub struct RetainedCameraUniforms {Show 37 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,
pub map_2d_morph: 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: f32Physical day/night terminator strength (0.0 = flat daylight, 1.0 = full terminator, fades to 0 in 2.5D).
city_lights_intensity: f32Deterministic land-masked night city-lights intensity (0.0 = off, auto-fades out in 2.5D).
local_25d_blend: f32Seamless 3D -> 2.5D ground morph factor (0.0 = 3D space globe, 1.0 = 2.5D local ground).
sun_visible: boolRender physical limb-darkened Sun disc & corona (true by default).
sun_angular_radius_rad: f32Visual Sun angular radius in radians (default ~0.018 rad).
moon_visible: boolRender NASA textured Moon with real orbital lunar phase (true by default).
moon_angular_radius_rad: f32Visual Moon angular radius in radians (default ~0.022 rad).
stars_visible: boolRender scientific deep-space starfield skybox (true by default).
stars_intensity: f32Brightness multiplier for starfield & Milky Way band.
skybox_intensity: f32Brightness multiplier for real telescope skybox cubemap (1.0 default).
cloud_layer_opacity: f32Opacity of global 3D cloud-map shell (0.0 = off; auto-fades out in 2.5D).
local_cloud_opacity: f32Opacity of local cropped satellite overhead cloud canopy in low-altitude / 2.5D view.
cloud_lon_offset_rad: f32Global cloud-map longitudinal scroll offset in radians.
time_s: f32Simulation / animation time in seconds.
realistic_25d_sky: f32Opt-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: f32Opt-in 2.5D night-sky star & Milky Way visibility sync (0.0 = off, 1.0 = stars appear at night above horizon).
terrain_25d_lighting: f32Opt-in physical 2.5D directional sun & DEM relief hillshading weight (0.0 = flat 2.5D terrain, 1.0 = lit).
terrain_25d_shadows: f32Opt-in hardware directional shadow-map pass & 9-tap PCF mountain/object shadow strength (0.0 = disabled).
shadow_map_size: u32Directional shadow map resolution in pixels (2048 default; lazily allocated only when shadows > 0).
weather_darkness: f32Unified weather optical storm/overcast darkness (0.0 = clear sky, 1.0 = brooding storm overcast).
weather_cloud_cover: f32Unified weather cloud cover fraction (0.0..=1.0, attenuating sun glare & night stars).
weather_haze: f32Unified 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: f32Weather-driven overhead 2.5D cloud coverage boost (0.0..=1.0).
map_2d_morph: f32Flat 2D map morph factor (0.0 = 3D/2.5D perspective scene, 1.0 = flat 2D map imagery).