pub struct HlodConfig {
pub cell_size: f64,
pub take_over: f64,
pub fade_out: f64,
pub hysteresis: f64,
}Expand description
Das HLOD-Raster und seine Übernahmezonen.
Fields§
§cell_size: f64Kantenlänge eines Cluster-Quadrats in Weltmetern. Sinnvoll: die
Zellgröße der äußersten Clipmap-Ebene (base_cell · 2^(levels−1))
— dann übernimmt ein Cluster exakt dort, wo das Streaming endet.
take_over: f64Ab diesem Chebyshev-Abstand zur Kamera übernimmt der Cluster
(typisch: crate::clipmap::ClipmapConfig::outer_radius).
fade_out: f64Jenseits davon ist selbst die Zusammenfassung zu weit — ausblenden.
hysteresis: f64Hysterese-Anteil der Übernahmezone, z. B. 0.05 = 5 % breitere
Rückkehrschwelle. Muss in 0..0.5 liegen.
Implementations§
Trait Implementations§
Source§impl Clone for HlodConfig
impl Clone for HlodConfig
Source§fn clone(&self) -> HlodConfig
fn clone(&self) -> HlodConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HlodConfig
Source§impl Debug for HlodConfig
impl Debug for HlodConfig
Source§impl PartialEq for HlodConfig
impl PartialEq for HlodConfig
Source§fn eq(&self, other: &HlodConfig) -> bool
fn eq(&self, other: &HlodConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HlodConfig
Auto Trait Implementations§
impl Freeze for HlodConfig
impl RefUnwindSafe for HlodConfig
impl Send for HlodConfig
impl Sync for HlodConfig
impl Unpin for HlodConfig
impl UnsafeUnpin for HlodConfig
impl UnwindSafe for HlodConfig
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