pub enum MeshQuality {
Low,
Medium,
High,
Ultra,
}Expand description
MilkDrop-style warp-mesh quality presets.
MD2’s nMeshSize config knob hopped between 32×24 (default) and
192×96 (max). We expose four named tiers covering that range plus a
Custom escape hatch so the UI can show a single dropdown.
Variants§
Low
32×24 — MD2 default, fastest. Visible faceting on warp curves.
Medium
48×36 — sweet spot for modern hardware.
High
64×48 — smooth warps, 4× the eval cost of Low.
Ultra
96×72 — near-max quality, 9× Low.
Implementations§
Source§impl MeshQuality
impl MeshQuality
Sourcepub fn size(self) -> MeshSize
pub fn size(self) -> MeshSize
Resolve to concrete mesh dimensions. Aspect ratio is roughly 4:3 to match MD2’s reference shipping ratios.
Trait Implementations§
Source§impl Clone for MeshQuality
impl Clone for MeshQuality
Source§fn clone(&self) -> MeshQuality
fn clone(&self) -> MeshQuality
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeshQuality
impl Debug for MeshQuality
Source§impl<'de> Deserialize<'de> for MeshQuality
impl<'de> Deserialize<'de> for MeshQuality
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MeshQuality
impl PartialEq for MeshQuality
Source§impl Serialize for MeshQuality
impl Serialize for MeshQuality
impl Copy for MeshQuality
impl Eq for MeshQuality
impl StructuralPartialEq for MeshQuality
Auto Trait Implementations§
impl Freeze for MeshQuality
impl RefUnwindSafe for MeshQuality
impl Send for MeshQuality
impl Sync for MeshQuality
impl Unpin for MeshQuality
impl UnwindSafe for MeshQuality
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more