Class PhongMaterialVariables
- Namespace
- HelixToolkit.SharpDX.Model
- Assembly
- HelixToolkit.SharpDX.dll
Default PhongMaterial Variables
public class PhongMaterialVariables : MaterialVariable, IDisposable
- Inheritance
-
PhongMaterialVariables
- Implements
- Inherited Members
Constructors
PhongMaterialVariables(IEffectsManager, IRenderTechnique, PhongMaterialCore, string)
Initializes a new instance of the PhongMaterialVariables class.
public PhongMaterialVariables(IEffectsManager manager, IRenderTechnique technique, PhongMaterialCore materialCore, string defaultPassName = "Default")
Parameters
managerIEffectsManagerThe manager.
techniqueIRenderTechniqueThe technique.
materialCorePhongMaterialCoreThe material core.
defaultPassNamestringDefault pass name
Properties
DepthPass
public ShaderPass DepthPass { get; }
Property Value
EnableTessellation
public bool EnableTessellation { get; }
Property Value
MaterialPass
public ShaderPass MaterialPass { get; }
Property Value
OITDepthPeeling
public ShaderPass OITDepthPeeling { get; }
Property Value
OITDepthPeelingInit
public ShaderPass OITDepthPeelingInit { get; }
Property Value
OITPass
public ShaderPass OITPass { get; }
Property Value
ShaderAlphaTexName
public string ShaderAlphaTexName { get; }
Property Value
ShaderDiffuseTexName
public string ShaderDiffuseTexName { get; }
Property Value
ShaderDisplaceTexName
public string ShaderDisplaceTexName { get; }
Property Value
ShaderEmissiveTexName
Gets the name of the shader emissive tex.
public string ShaderEmissiveTexName { get; }
Property Value
- string
The name of the shader emissive tex.
ShaderNormalTexName
public string ShaderNormalTexName { get; }
Property Value
ShaderSamplerDiffuseTexName
public string ShaderSamplerDiffuseTexName { get; }
Property Value
ShaderSamplerDisplaceTexName
public string ShaderSamplerDisplaceTexName { get; }
Property Value
ShaderSamplerShadowMapName
public string ShaderSamplerShadowMapName { get; }
Property Value
ShaderShadowTexName
Gets or sets the name of the shader shadow tex.
public string ShaderShadowTexName { get; }
Property Value
- string
The name of the shader shadow tex.
ShaderSpecularTexName
Gets the shader specular texture.
public string ShaderSpecularTexName { get; }
Property Value
- string
The shader specular texture.
ShadowPass
public ShaderPass ShadowPass { get; }
Property Value
TessellationOITDPPass
public ShaderPass TessellationOITDPPass { get; }
Property Value
TessellationOITPass
public ShaderPass TessellationOITPass { get; }
Property Value
TessellationPass
public ShaderPass TessellationPass { get; }
Property Value
WireframeOITDPPass
public ShaderPass WireframeOITDPPass { get; }
Property Value
WireframeOITPass
public ShaderPass WireframeOITPass { get; }
Property Value
WireframePass
public ShaderPass WireframePass { 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()