Table of Contents

Class SkyBoxRenderCore

Namespace
HelixToolkit.SharpDX.Core
Assembly
HelixToolkit.SharpDX.dll
public class SkyBoxRenderCore : GeometryRenderCore, IDisposable, IGUID, IThrowingShadow, IGeometryRenderCore, ISkyboxRenderParams
Inheritance
SkyBoxRenderCore
Implements
Inherited Members

Constructors

SkyBoxRenderCore()

Initializes a new instance of the SkyBoxRenderCore class.

public SkyBoxRenderCore()

Properties

CubeTexture

Gets or sets the cube texture.

public TextureModel? CubeTexture { get; set; }

Property Value

TextureModel

The cube texture.

MipMapLevels

Gets the mip map levels for current cube texture.

public int MipMapLevels { get; }

Property Value

int

The mip map levels.

SamplerDescription

Gets or sets the sampler description.

public SamplerStateDescription SamplerDescription { get; set; }

Property Value

SamplerStateDescription

The sampler description.

ShaderCubeTextureName

Gets or sets the name of the shader cube texture.

public string ShaderCubeTextureName { get; set; }

Property Value

string

The name of the shader cube texture.

ShaderCubeTextureSamplerName

Gets or sets the name of the shader cube texture sampler.

public string ShaderCubeTextureSamplerName { get; set; }

Property Value

string

The name of the shader cube texture sampler.

SkipRendering

Skip environment map rendering, but still keep it available for other object to use.

public bool SkipRendering { get; set; }

Property Value

bool

Methods

OnAttach(IRenderTechnique?)

Called when [attach].

protected override bool OnAttach(IRenderTechnique? technique)

Parameters

technique IRenderTechnique

The technique.

Returns

bool

OnDefaultPassChanged(ShaderPass)

Called when [default pass changed].

protected void OnDefaultPassChanged(ShaderPass pass)

Parameters

pass ShaderPass

The pass.

OnDetach()

On detaching, default is to release all resources

protected override void OnDetach()

OnRender(RenderContext, DeviceContextProxy)

Called when [render].

protected override void OnRender(RenderContext context, DeviceContextProxy deviceContext)

Parameters

context RenderContext

The context.

deviceContext DeviceContextProxy

The device context.

OnRenderCustom(RenderContext, DeviceContextProxy)

Render function for custom shader pass. Used to do special effects

protected override sealed void OnRenderCustom(RenderContext context, DeviceContextProxy deviceContext)

Parameters

context RenderContext
deviceContext DeviceContextProxy

OnRenderDepth(RenderContext, DeviceContextProxy, ShaderPass?)

Called when [render depth].

protected override sealed void OnRenderDepth(RenderContext context, DeviceContextProxy deviceContext, ShaderPass? customPass)

Parameters

context RenderContext

The context.

deviceContext DeviceContextProxy

The device context.

customPass ShaderPass

Custom depth pass

OnRenderShadow(RenderContext, DeviceContextProxy)

Called when [render shadow].

protected override sealed void OnRenderShadow(RenderContext context, DeviceContextProxy deviceContext)

Parameters

context RenderContext

The context.

deviceContext DeviceContextProxy

The device context.