Table of Contents

Class ShadowMap3D

Namespace
HelixToolkit.WinUI.SharpDX
Assembly
HelixToolkit.WinUI.SharpDX.dll
public class ShadowMap3D : Element3D, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IDynamicInterfaceCastable, IEquatable<Control>, IDisposable, IVisible
Inheritance
ShadowMap3D
Implements
IWinRTObject
Inherited Members
Extension Methods

Fields

AutoCoverCompleteSceneProperty

public static readonly DependencyProperty AutoCoverCompleteSceneProperty

Field Value

DependencyProperty

BiasProperty

The bias property

public static readonly DependencyProperty BiasProperty

Field Value

DependencyProperty

DistanceProperty

The distance property

public static readonly DependencyProperty DistanceProperty

Field Value

DependencyProperty

FarFieldDistanceProperty

The far field distance property

public static readonly DependencyProperty FarFieldDistanceProperty

Field Value

DependencyProperty

IntensityProperty

The intensity property

public static readonly DependencyProperty IntensityProperty

Field Value

DependencyProperty

IsSceneDynamicProperty

public static readonly DependencyProperty IsSceneDynamicProperty

Field Value

DependencyProperty

LightCameraProperty

The light camera property

public static readonly DependencyProperty LightCameraProperty

Field Value

DependencyProperty

NearFieldDistanceProperty

The near field distance property

public static readonly DependencyProperty NearFieldDistanceProperty

Field Value

DependencyProperty

OrthoWidthProperty

The ortho width property

public static readonly DependencyProperty OrthoWidthProperty

Field Value

DependencyProperty

ResolutionProperty

The resolution property

public static readonly DependencyProperty ResolutionProperty

Field Value

DependencyProperty

Properties

AutoCoverCompleteScene

Gets or sets a value indicating whether shadow map should automatically cover complete scene. Only effective with directional light.

Limitation: Currently unable to properly cover BoneSkinned model animation.

public bool AutoCoverCompleteScene { get; set; }

Property Value

bool

true if [automaticcally cover complete scene]; otherwise, false.

Bias

public double Bias { get; set; }

Property Value

double

Distance

Gets or sets the distance for shadow caster.

public double Distance { get; set; }

Property Value

double

The distance of the shadow caster

FarFieldDistance

Gets or sets the far field distance.

public double FarFieldDistance { get; set; }

Property Value

double

The far field distance.

Intensity

public double Intensity { get; set; }

Property Value

double

IsSceneDynamic

Gets or sets a value indicating whether the scene is dynamic. Only effective if AutoCoverCompleteScene is true.

Setting to true will force shadow map to update the shadow camera for each frame. May impact the performance.

public bool IsSceneDynamic { get; set; }

Property Value

bool

true if scene is dynamic; otherwise, false.

LightCamera

Distance of the directional light from origin

public IProjectionCameraModel? LightCamera { get; set; }

Property Value

IProjectionCameraModel

NearFieldDistance

Gets or sets the near field distance.

public double NearFieldDistance { get; set; }

Property Value

double

The near field distance.

OrthoWidth

Gets or sets the width of the orthographic camera used in shadow caster.

public double OrthoWidth { get; set; }

Property Value

double

The width of the orthographic matrix.

Resolution

Gets or sets the resolution.

public Size Resolution { get; set; }

Property Value

Size

The resolution.

Methods

AssignDefaultValuesToSceneNode(SceneNode)

Assigns the default values to core.

protected override void AssignDefaultValuesToSceneNode(SceneNode core)

Parameters

core SceneNode

The core.

OnCreateSceneNode()

Called when [create scene node].

protected override SceneNode OnCreateSceneNode()

Returns

SceneNode