pub struct LodConfig {
pub radius: f64,
pub low_poly_distance: f64,
pub medium_poly_distance: f64,
}Fields§
§radius: f64§low_poly_distance: f64§medium_poly_distance: f64Implementations§
Source§impl LodConfig
impl LodConfig
pub fn new(radius: f64) -> Self
pub fn with_distances(radius: f64, medium: f64, low: f64) -> Self
pub fn select_lod(&self, camera_distance: f64) -> LodLevel
pub fn angular_diameter_rad(&self, camera_distance: f64) -> f64
pub fn pixel_diameter( &self, camera_distance: f64, fov_rad: f64, viewport_height: u32, ) -> f64
pub fn adaptive_subdivisions( &self, camera_distance: f64, fov_rad: f64, viewport_height: u32, ) -> u32
Auto Trait Implementations§
impl Freeze for LodConfig
impl RefUnwindSafe for LodConfig
impl Send for LodConfig
impl Sync for LodConfig
impl Unpin for LodConfig
impl UnsafeUnpin for LodConfig
impl UnwindSafe for LodConfig
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