Table of Contents

Class MaterialPass

Namespace
Stride.Rendering
Assembly
Stride.Rendering.dll

Describes a single rendering pass of a Material.

[DataContract]
public class MaterialPass
Inheritance
MaterialPass

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

parameters ParameterCollection

The parameters.

Fields

BlendState

Overrides the blend state for this material.

public BlendStateDescription? BlendState

Field Value

BlendStateDescription?

CullMode

Overrides the cullmode for this material.

public CullMode? CullMode

Field Value

CullMode?

TessellationMethod

The tessellation method used by the material.

public StrideTessellationMethod TessellationMethod

Field Value

StrideTessellationMethod

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

true if this instance has transparent; otherwise, false.

IsLightDependent

Determines if this material is affected by lighting.

public bool IsLightDependent { get; set; }

Property Value

bool

true if this instance affects lighting; otherwise, false.

Material

The material that contains this pass.

public Material Material { get; }

Property Value

Material

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

int

Remarks

Used for state sorting.