Class EnvironmentMapNode
- Namespace
- HelixToolkit.SharpDX.Model.Scene
- Assembly
- HelixToolkit.SharpDX.dll
public class EnvironmentMapNode : SceneNode, IDisposable, IComparable<SceneNode>, IAnimationNode
- Inheritance
-
EnvironmentMapNode
- Implements
- Inherited Members
- Extension Methods
Constructors
EnvironmentMapNode()
Initializes a new instance of the EnvironmentMapNode class. Default is using SkyBox. To use SkyDome, pass true into the constructor
public EnvironmentMapNode()
EnvironmentMapNode(bool)
Initializes a new instance of the EnvironmentMapNode class. Default is using SkyBox. To use SkyDome, pass true into the constructor
public EnvironmentMapNode(bool useSkyDome)
Parameters
useSkyDomeboolif set to
true[use sky dome].
Properties
SkipRendering
Skip environment map rendering, but still keep it available for other object to use.
public bool SkipRendering { get; set; }
Property Value
Texture
Gets or sets the environment texture. Must be 3D cube texture
public TextureModel? Texture { get; set; }
Property Value
- TextureModel
The texture.
Methods
CanRender(RenderContext)
protected override bool CanRender(RenderContext context)
Parameters
contextRenderContext
Returns
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
OnCreateRenderTechnique(IEffectsManager)
Override this function to set render technique during Attach Host.
If OnSetRenderTechnique is set, then OnSetRenderTechnique instead of OnCreateRenderTechnique(IEffectsManager) function will be called.
protected override IRenderTechnique? OnCreateRenderTechnique(IEffectsManager effectsManager)
Parameters
effectsManagerIEffectsManager
Returns
- IRenderTechnique
Return RenderTechnique
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.