Enum ux::prelude::dx::FogMode [−][src]
#[non_exhaustive] pub enum FogMode { Linear, Exponential, ExponentialSquared, // some variants omitted }
The fog mode determines the equation used to calculate the fogging blend
factor while fogging is enabled. The simplest FogMode::Linear
mode
determines f as:
f = end - eye_distance / end - start
Where eye_distance is the distance of the current fragment in eye coordinates from the origin.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Calculates the fog blend factor as:
f = end - eye_distance / end - start
Calculates the fog blend factor as:
f = e ^ -(density * eye_distance)
Calculates the fog blend factor as:
f = e ^ -(density * eye_distance)^2
Trait Implementations
impl<'a> FromValueOptional<'a> for FogMode
[src]
impl<'a> FromValueOptional<'a> for FogMode
[src]pub unsafe fn from_value_optional(value: &Value) -> Option<FogMode>
[src]
impl PartialOrd<FogMode> for FogMode
[src]
impl PartialOrd<FogMode> for FogMode
[src]impl StaticType for FogMode
[src]
impl StaticType for FogMode
[src]pub fn static_type() -> Type
[src]
impl StructuralEq for FogMode
[src]
impl StructuralEq for FogMode
[src]impl StructuralPartialEq for FogMode
[src]
impl StructuralPartialEq for FogMode
[src]Auto Trait Implementations
impl RefUnwindSafe for FogMode
impl RefUnwindSafe for FogMode
impl UnwindSafe for FogMode
impl UnwindSafe for FogMode
Blanket Implementations
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]pub fn into_color(self) -> To
[src]
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,