A light that illuminates every targeted Visual equally.
public : sealed class AmbientLight : CompositionLight, IAmbientLight, IAmbientLight2
struct winrt::Windows::UI::Composition::AmbientLight : CompositionLight, IAmbientLight, IAmbientLight2
public sealed class AmbientLight : CompositionLight, IAmbientLight, IAmbientLight2
Public NotInheritable Class AmbientLight Inherits CompositionLight Implements IAmbientLight, IAmbientLight2
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
Windows.Foundation.UniversalApiContract (introduced v3)
_ambientLight = _compositor.CreateAmbientLight(); _ambientLight.Color = Colors.Yellow; _ambientLight.Targets.Add(root);
|AmbientLight||A light source that emits non directional light that appears to have been reflected by everything in the scene.|
|DistantLight||An infinitely large distant light source that emits light in a single direction.|
|PointLight||A point source of light that emits light in all directions.|
|SpotLight||A light source that emits inner and outer cones of light.|
A Visual cannot be targeted by more than two non-ambient lights (PointLight, SpotLight or DistantLight).