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
Methods
OnAttach(IRenderTechnique?)
Called when [attach].
protected override bool OnAttach(IRenderTechnique? technique)
Parameters
techniqueIRenderTechniqueThe technique.
Returns
OnDefaultPassChanged(ShaderPass)
Called when [default pass changed].
protected void OnDefaultPassChanged(ShaderPass pass)
Parameters
passShaderPassThe 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
contextRenderContextThe context.
deviceContextDeviceContextProxyThe 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
contextRenderContextdeviceContextDeviceContextProxy
OnRenderDepth(RenderContext, DeviceContextProxy, ShaderPass?)
Called when [render depth].
protected override sealed void OnRenderDepth(RenderContext context, DeviceContextProxy deviceContext, ShaderPass? customPass)
Parameters
contextRenderContextThe context.
deviceContextDeviceContextProxyThe device context.
customPassShaderPassCustom depth pass
OnRenderShadow(RenderContext, DeviceContextProxy)
Called when [render shadow].
protected override sealed void OnRenderShadow(RenderContext context, DeviceContextProxy deviceContext)
Parameters
contextRenderContextThe context.
deviceContextDeviceContextProxyThe device context.