pub struct SceneLightingEffect {
pub name: String,
pub ambient_amount: f32,
pub diffuse_amount: f32,
pub specular_amount: f32,
pub specular_shine: f32,
pub normal_map_source: Option<GraphicsEffectSource>,
}Expand description
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.
Fields§
§name: StringThe name of the effect.
ambient_amount: f32The weight of the ambient lights (default 1).
diffuse_amount: f32The weight of the diffuse light (default 1).
specular_amount: f32The weight of the specular light (default 0; stored, flat visuals have no specular highlight here).
specular_shine: f32The shininess of the specular light (default 16; stored).
normal_map_source: Option<GraphicsEffectSource>The normal map (stored; the lit surface is flat).
Trait Implementations§
Source§impl Clone for SceneLightingEffect
impl Clone for SceneLightingEffect
Source§impl Debug for SceneLightingEffect
impl Debug for SceneLightingEffect
Source§impl Default for SceneLightingEffect
impl Default for SceneLightingEffect
Source§impl From<SceneLightingEffect> for GraphicsEffect
impl From<SceneLightingEffect> for GraphicsEffect
Source§fn from(effect: SceneLightingEffect) -> Self
fn from(effect: SceneLightingEffect) -> Self
Source§impl From<SceneLightingEffect> for GraphicsEffectSource
impl From<SceneLightingEffect> for GraphicsEffectSource
Source§fn from(effect: SceneLightingEffect) -> Self
fn from(effect: SceneLightingEffect) -> Self
Source§impl PartialEq for SceneLightingEffect
impl PartialEq for SceneLightingEffect
impl StructuralPartialEq for SceneLightingEffect
Auto Trait Implementations§
impl Freeze for SceneLightingEffect
impl RefUnwindSafe for SceneLightingEffect
impl Send for SceneLightingEffect
impl Sync for SceneLightingEffect
impl Unpin for SceneLightingEffect
impl UnsafeUnpin for SceneLightingEffect
impl UnwindSafe for SceneLightingEffect
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more