Class MaterialPass
Describes a single rendering pass of a Material.
[DataContract]
public class MaterialPass- Inheritance
- 
      objectMaterialPass
Constructors
MaterialPass()
Initializes a new instance of the MaterialPass class.
public MaterialPass()MaterialPass(ParameterCollection)
Initializes a new instance of the MaterialPass class.
public MaterialPass(ParameterCollection parameters)Parameters
- parametersParameterCollection
- The parameters. 
Fields
BlendState
Overrides the blend state for this material.
public BlendStateDescription? BlendStateField Value
CullMode
Overrides the cullmode for this material.
public CullMode? CullModeField Value
DepthFunction
Overrides depth clip for this material.
public CompareFunction? DepthFunctionField Value
TessellationMethod
The tessellation method used by the material.
public StrideTessellationMethod TessellationMethodField Value
Properties
AlphaToCoverage
Whether or not to use the alpha-to-coverage multisampling technique.
public bool? AlphaToCoverage { get; set; }Property Value
- bool?
HasTransparency
Gets or sets a value indicating whether this instance has transparent.
public bool HasTransparency { get; set; }Property Value
- bool
- trueif this instance has transparent; otherwise,- false.
IsLightDependent
Determines if this material is affected by lighting.
public bool IsLightDependent { get; set; }Property Value
- bool
- trueif this instance affects lighting; otherwise,- false.
Material
The material that contains this pass.
public Material Material { get; }Property Value
Parameters
Gets or sets the parameters.
public ParameterCollection Parameters { get; set; }Property Value
- ParameterCollection
- The parameters. 
PassIndex
The index of this pass as part of its containing Material.
public int PassIndex { get; set; }Property Value
Remarks
Used for state sorting.