pub struct RetainedGeoInstance {
pub mesh_id: u64,
pub anchor_ecef: [f64; 3],
pub model_cols: [[f32; 3]; 3],
pub base_color: [f32; 4],
pub emissive_rgb: [f32; 3],
pub roughness: f32,
pub metalness: f32,
pub unlit: bool,
pub accent_mix: f32,
pub albedo_texture: Option<Arc<RetainedTileTexture>>,
}Expand description
Hardware-instanced 3D object anchored in double-precision ECEF / morphed planetary space.
model_cols is a column-major 3x3 linear transform mapping local model coordinates (+X, +Y, +Z)
to world relative metres (combining scale, local heading/pitch/roll, local ENU basis, and 2D/2.5D
surface morphing).
Fields§
§mesh_id: u64§anchor_ecef: [f64; 3]§model_cols: [[f32; 3]; 3]§base_color: [f32; 4]§emissive_rgb: [f32; 3]§roughness: f32§metalness: f32§unlit: bool§accent_mix: f32Optional white-core accent mix (0.0 default; multiplied by vertex uv.y in shader).
albedo_texture: Option<Arc<RetainedTileTexture>>Optional per-instance albedo RGBA8 texture overriding RetainedMeshAsset::albedo_texture.
Trait Implementations§
Source§impl Clone for RetainedGeoInstance
impl Clone for RetainedGeoInstance
Source§impl Debug for RetainedGeoInstance
impl Debug for RetainedGeoInstance
Source§impl Default for RetainedGeoInstance
impl Default for RetainedGeoInstance
Source§impl PartialEq for RetainedGeoInstance
impl PartialEq for RetainedGeoInstance
impl StructuralPartialEq for RetainedGeoInstance
Auto Trait Implementations§
impl Forget for RetainedGeoInstance
impl Freeze for RetainedGeoInstance
impl Move for RetainedGeoInstance
impl RefUnwindSafe for RetainedGeoInstance
impl Send for RetainedGeoInstance
impl Sync for RetainedGeoInstance
impl Unpin for RetainedGeoInstance
impl UnsafeUnpin for RetainedGeoInstance
impl UnwindSafe for RetainedGeoInstance
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