Class ShadowMap3D
- Namespace
- HelixToolkit.Wpf.SharpDX
- Assembly
- HelixToolkit.Wpf.SharpDX.dll
public class ShadowMap3D : Element3D, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IDisposable, IVisible
- Inheritance
-
ShadowMap3D
- Implements
- Inherited Members
- Extension Methods
Fields
AutoCoverCompleteSceneProperty
public static readonly DependencyProperty AutoCoverCompleteSceneProperty
Field Value
BiasProperty
The bias property
public static readonly DependencyProperty BiasProperty
Field Value
DistanceProperty
The distance property
public static readonly DependencyProperty DistanceProperty
Field Value
FarFieldDistanceProperty
The far field distance property
public static readonly DependencyProperty FarFieldDistanceProperty
Field Value
IntensityProperty
The intensity property
public static readonly DependencyProperty IntensityProperty
Field Value
IsSceneDynamicProperty
public static readonly DependencyProperty IsSceneDynamicProperty
Field Value
LightCameraProperty
The light camera property
public static readonly DependencyProperty LightCameraProperty
Field Value
NearFieldDistanceProperty
The near field distance property
public static readonly DependencyProperty NearFieldDistanceProperty
Field Value
OrthoWidthProperty
The ortho width property
public static readonly DependencyProperty OrthoWidthProperty
Field Value
ResolutionProperty
The resolution property
public static readonly DependencyProperty ResolutionProperty
Field Value
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
trueif [automaticcally cover complete scene]; otherwise,false.
Bias
public double Bias { get; set; }
Property Value
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
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
trueif scene is dynamic; otherwise,false.
LightCamera
Distance of the directional light from origin
public IProjectionCameraModel? LightCamera { get; set; }
Property Value
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
coreSceneNodeThe core.
OnCreateSceneNode()
Called when [create scene node].
protected override SceneNode OnCreateSceneNode()