MaterialPass Class
Namespace: Stride.RenderingAssembly: Stride.Rendering.dll
Describes a single rendering pass of a Material.
[DataContract]
public class MaterialPass
Name | Description | |
---|---|---|
Constructors | ||
MaterialPass() | Initializes a new instance of the MaterialPass class. |
|
MaterialPass(ParameterCollection) | Initializes a new instance of the MaterialPass class. |
|
Fields | ||
BlendState | Overrides the blend state for this material. |
|
CullMode | Overrides the cullmode for this material. |
|
TessellationMethod | The tessellation method used by the material. |
|
Properties | ||
AlphaToCoverage | Whether or not to use the alpha-to-coverage multisampling technique. |
|
HasTransparency | Gets or sets a value indicating whether this instance has transparent. |
|
IsLightDependent | Determines if this material is affected by lighting. |
|
Material | The material that contains this pass. |
|
Parameters | Gets or sets the parameters. |
|
PassIndex | The index of this pass as part of its containing Material. |
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
Type | Name | Description |
---|---|---|
ParameterCollection | parameters | The parameters. |
Fields
BlendState
Overrides the blend state for this material.
public BlendStateDescription? BlendState
Field Value
Type | Description |
---|---|
System.Nullable<BlendStateDescription> |
CullMode
Overrides the cullmode for this material.
public CullMode? CullMode
Field Value
Type | Description |
---|---|
System.Nullable<CullMode> |
TessellationMethod
The tessellation method used by the material.
public StrideTessellationMethod TessellationMethod
Field Value
Type | Description |
---|---|
StrideTessellationMethod |
Properties
AlphaToCoverage
Whether or not to use the alpha-to-coverage multisampling technique.
public bool? AlphaToCoverage { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
HasTransparency
Gets or sets a value indicating whether this instance has transparent.
public bool HasTransparency { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsLightDependent
Determines if this material is affected by lighting.
public bool IsLightDependent { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Material
The material that contains this pass.
public Material Material { get; }
Property Value
Type | Description |
---|---|
Material |
Parameters
Gets or sets the parameters.
public ParameterCollection Parameters { get; set; }
Property Value
Type | Description |
---|---|
ParameterCollection | The parameters. |
PassIndex
The index of this pass as part of its containing Material.
public int PassIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Used for state sorting.