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.
Members
name
name: String
The name of the effect.
ambient_amount
ambient_amount: f32
The weight of the ambient lights (default 1).
diffuse_amount
diffuse_amount: f32
The weight of the diffuse light (default 1).
specular_amount
specular_amount: f32
The weight of the specular light (default 0; stored, flat visuals have no specular highlight here).
specular_shine
specular_shine: f32
The shininess of the specular light (default 16; stored).
normal_map_source
normal_map_source: Option<GraphicsEffectSource>
The normal map (stored; the lit surface is flat).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherFrom<SceneLightingEffect>CloneDebugStructuralPartialEqPartialEqDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.