FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SceneLightingEffect

    struct · ferroui-base · v0.5.0

    struct SceneLightingEffect
    

    The lighting of the lights that reach the visual that paints the brush (WinUI Microsoft.UI.Composition.Effects.SceneLightingEffect): the sum, for every point of the brush, of the ambient lights times AmbientAmount and of the diffuse light of the other lights times DiffuseAmount, opaque. Animatable: AmbientAmount, DiffuseAmount, SpecularAmount, SpecularShine.

    The lights are the composition lights that target the visual (or one of its ancestors), and, for a XAML brush, the XAML lights that target the brush in the subtree of the element that holds them.

    View source

    Members

    name

    name: String
    

    The name of the effect.

    Source

    ambient_amount

    ambient_amount: f32
    

    The weight of the ambient lights (default 1).

    Source

    diffuse_amount

    diffuse_amount: f32
    

    The weight of the diffuse light (default 1).

    Source

    specular_amount

    specular_amount: f32
    

    The weight of the specular light (default 0; stored, flat visuals have no specular highlight here).

    Source

    specular_shine

    specular_shine: f32
    

    The shininess of the specular light (default 16; stored).

    Source

    normal_map_source

    normal_map_source: Option<GraphicsEffectSource>
    

    The normal map (stored; the lit surface is flat).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • From<SceneLightingEffect>
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.