Class DepthPrepassNode
- Namespace
- HelixToolkit.SharpDX.Model.Scene
- Assembly
- HelixToolkit.SharpDX.dll
Do a depth prepass before rendering.
Must customize the DefaultEffectsManager and set DepthStencilState to DefaultDepthStencilDescriptions.DSSDepthEqualNoWrite in default ShaderPass from EffectsManager to achieve best performance.
public sealed class DepthPrepassNode : SceneNode, IDisposable, IComparable<SceneNode>, IAnimationNode
- Inheritance
-
DepthPrepassNode
- Implements
- Inherited Members
- Extension Methods
Methods
HitTest(HitTestContext?, ref List<HitTestResult>)
Hits the test.
public override sealed bool HitTest(HitTestContext? context, ref List<HitTestResult> hits)
Parameters
contextHitTestContextThe context.
hitsList<HitTestResult>The hits.
Returns
OnCreateRenderCore()
Called when [create render core].
protected override RenderCore OnCreateRenderCore()
Returns
OnHitTest(HitTestContext?, Matrix4x4, ref List<HitTestResult>)
Called when [hit test].
protected override sealed bool OnHitTest(HitTestContext? context, Matrix4x4 totalModelMatrix, ref List<HitTestResult> hits)
Parameters
contextHitTestContextThe context.
totalModelMatrixMatrix4x4The total model matrix.
hitsList<HitTestResult>The hits.