Table of Contents

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

float

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

bool

Height

public int Height { get; set; }

Property Value

int

Intensity

public float Intensity { get; set; }

Property Value

float

LightProjection

public Matrix4x4 LightProjection { get; set; }

Property Value

Matrix4x4

LightView

public Matrix4x4 LightView { get; set; }

Property Value

Matrix4x4

NeedRender

public bool NeedRender { get; set; }

Property Value

bool

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

int

Width

public int Width { get; set; }

Property Value

int

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

technique IRenderTechnique

Returns

bool

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

context RenderContext
deviceContext DeviceContextProxy

Events

OnUpdateLightSource

public event EventHandler<ShadowMapCore.UpdateLightSourceEventArgs>? OnUpdateLightSource

Event Type

EventHandler<ShadowMapCore.UpdateLightSourceEventArgs>