Class ShadowMapCore
- Namespace
- HelixToolkit.SharpDX.Core
- Assembly
- HelixToolkit.SharpDX.dll
public class ShadowMapCore : RenderCore, IDisposable, IGUID, IThrowingShadow, IShadowMapRenderParams
- Inheritance
-
ShadowMapCore
- Implements
- Inherited Members
Constructors
ShadowMapCore()
public ShadowMapCore()
Properties
Bias
public float Bias { get; set; }
Property Value
DepthStencilViewDesc
protected virtual DepthStencilViewDescription DepthStencilViewDesc { get; }
Property Value
- DepthStencilViewDescription
FoundLightSource
Set to true if found the light source, otherwise false.
public bool FoundLightSource { get; set; }
Property Value
Height
public int Height { get; set; }
Property Value
Intensity
public float Intensity { get; set; }
Property Value
LightProjection
public Matrix4x4 LightProjection { get; set; }
Property Value
LightView
public Matrix4x4 LightView { get; set; }
Property Value
NeedRender
public bool NeedRender { get; set; }
Property Value
ShaderResourceViewDesc
protected virtual ShaderResourceViewDescription ShaderResourceViewDesc { get; }
Property Value
- ShaderResourceViewDescription
ShadowMapTextureDesc
protected virtual Texture2DDescription ShadowMapTextureDesc { get; }
Property Value
- Texture2DDescription
UpdateFrequency
Update shadow map every N frames
public int UpdateFrequency { get; set; }
Property Value
Width
public int Width { get; set; }
Property Value
Methods
OnAttach(IRenderTechnique?)
During attatching render core. Create all local resources. Use Collect(resource) to let object be released automatically during Detach().
protected override bool OnAttach(IRenderTechnique? technique)
Parameters
techniqueIRenderTechnique
Returns
OnDetach()
On detaching, default is to release all resources
protected override void OnDetach()
Render(RenderContext, DeviceContextProxy)
Render routine
public override void Render(RenderContext context, DeviceContextProxy deviceContext)
Parameters
contextRenderContextdeviceContextDeviceContextProxy
Events
OnUpdateLightSource
public event EventHandler<ShadowMapCore.UpdateLightSourceEventArgs>? OnUpdateLightSource