Table of Contents

Class MaterialGeometryNode

Namespace
HelixToolkit.SharpDX.Model.Scene
Assembly
HelixToolkit.SharpDX.dll
public abstract class MaterialGeometryNode : GeometryNode, IDisposable, IComparable<SceneNode>, IAnimationNode, IHitable, IThrowingShadow, IInstancing, IBoundable, IApplyPostEffect
Inheritance
MaterialGeometryNode
Implements
Derived
Inherited Members
Extension Methods

Properties

IsTransparent

Specifiy if model material is transparent. During rendering, transparent objects are rendered after opaque objects. Transparent objects' order in scene graph are preserved.

public bool IsTransparent { get; set; }

Property Value

bool

Material

public MaterialCore? Material { get; set; }

Property Value

MaterialCore

Methods

AttachMaterial()

protected virtual void AttachMaterial()

CanRender(RenderContext)

Determine if this can be rendered.

protected override bool CanRender(RenderContext context)

Parameters

context RenderContext

Returns

bool

OnAttach(IEffectsManager)

This function initialize the Geometry Buffer and Instance Buffer

protected override bool OnAttach(IEffectsManager effectsManager)

Parameters

effectsManager IEffectsManager

Returns

bool

Return true if attached

OnDetach()

Used to override Detach

protected override void OnDetach()

OnUpdateRenderOrderKey()

protected override OrderKey OnUpdateRenderOrderKey()

Returns

OrderKey