Table of Contents

Class PostEffectMeshOutlineBlurCore

Namespace
HelixToolkit.SharpDX.Core
Assembly
HelixToolkit.SharpDX.dll

Outline blur effect

Must not put in shared model across multiple viewport, otherwise may causes performance issue if each viewport sizes are different.

public class PostEffectMeshOutlineBlurCore : RenderCore, IDisposable, IGUID, IThrowingShadow, IPostEffectOutlineBlur, IPostEffect
Inheritance
PostEffectMeshOutlineBlurCore
Implements
Inherited Members

Constructors

PostEffectMeshOutlineBlurCore(bool)

Initializes a new instance of the PostEffectMeshOutlineBlurCore class.

public PostEffectMeshOutlineBlurCore(bool useBlurCore = true)

Parameters

useBlurCore bool

Properties

Color

Gets or sets the color of the border.

public Color4 Color { get; set; }

Property Value

Color4

The color of the border.

DrawMode

public OutlineMode DrawMode { get; set; }

Property Value

OutlineMode

EffectName

Gets or sets the name of the effect.

public string EffectName { get; set; }

Property Value

string

The name of the effect.

NumberOfBlurPass

Gets or sets the number of blur pass.

public int NumberOfBlurPass { get; set; }

Property Value

int

The number of blur pass.

ScaleX

Gets or sets the scale x.

public float ScaleX { get; set; }

Property Value

float

The scale x.

ScaleY

Gets or sets the scale y.

public float ScaleY { get; set; }

Property Value

float

The scale y.

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()

OnUpdateCanRenderFlag()

Called when [update can render flag].

protected override bool OnUpdateCanRenderFlag()

Returns

bool

Render(RenderContext, DeviceContextProxy)

Render routine

public override void Render(RenderContext context, DeviceContextProxy deviceContext)

Parameters

context RenderContext
deviceContext DeviceContextProxy