Class LineMaterialVariable
- Namespace
- HelixToolkit.SharpDX.Model
- Assembly
- HelixToolkit.SharpDX.dll
public class LineMaterialVariable : MaterialVariable, IDisposable
- Inheritance
-
LineMaterialVariable
- Implements
- Derived
- Inherited Members
Constructors
LineMaterialVariable(IEffectsManager, IRenderTechnique, LineMaterialCore, string)
Initializes a new instance of the LineMaterialVariable class.
public LineMaterialVariable(IEffectsManager manager, IRenderTechnique technique, LineMaterialCore materialCore, string defaultPassName = "Default")
Parameters
managerIEffectsManagerThe manager.
techniqueIRenderTechniqueThe technique.
materialCoreLineMaterialCoreThe material core.
defaultPassNamestringDefault pass name
Properties
DepthPass
public ShaderPass DepthPass { get; }
Property Value
LinePass
public ShaderPass LinePass { get; }
Property Value
ShaderTextureName
Set texture variable name insider shader for binding
public string ShaderTextureName { get; }
Property Value
ShaderTextureSamplerName
Set texture sampler variable name inside shader for binding
public string ShaderTextureSamplerName { get; }
Property Value
ShadowPass
public ShaderPass ShadowPass { get; }
Property Value
Methods
BindMaterialResources(RenderContext, DeviceContextProxy, ShaderPass)
Binds the material textures, samplers, etc,.
public override bool BindMaterialResources(RenderContext context, DeviceContextProxy deviceContext, ShaderPass shaderPass)
Parameters
contextRenderContextdeviceContextDeviceContextProxyThe device context.
shaderPassShaderPassThe shader pass.
Returns
Draw(DeviceContextProxy, IAttachableBufferModel, int)
Draws the specified device context.
public override void Draw(DeviceContextProxy deviceContext, IAttachableBufferModel bufferModel, int instanceCount)
Parameters
deviceContextDeviceContextProxyThe device context.
bufferModelIAttachableBufferModelGeometry buffer model.
instanceCountintThe instance count.
GetDepthPass(RenderType, RenderContext)
Gets the depth pass.
public override ShaderPass GetDepthPass(RenderType renderType, RenderContext context)
Parameters
renderTypeRenderTypeType of the render.
contextRenderContextThe context.
Returns
GetPass(RenderType, RenderContext)
Gets the pass.
public override ShaderPass GetPass(RenderType renderType, RenderContext context)
Parameters
renderTypeRenderTypeType of the render.
contextRenderContextThe context.
Returns
GetShadowPass(RenderType, RenderContext)
Gets the shadow pass.
public override ShaderPass GetShadowPass(RenderType renderType, RenderContext context)
Parameters
renderTypeRenderTypecontextRenderContextThe context.
Returns
GetWireframePass(RenderType, RenderContext)
Gets the wireframe pass.
public override ShaderPass GetWireframePass(RenderType renderType, RenderContext context)
Parameters
renderTypeRenderTypecontextRenderContextThe context.
Returns
OnDispose(bool)
protected override void OnDispose(bool disposeManagedResources)
Parameters
disposeManagedResourcesbool
OnInitialPropertyBindings()
protected override void OnInitialPropertyBindings()