Class MaterialDefinition
Immutable description of a material registered with ShaderManager.
public sealed class MaterialDefinition
- Inheritance
-
MaterialDefinition
- Inherited Members
Properties
Material
The material this definition describes.
public Material Material { get; }
Property Value
Name
The material's name, for diagnostics. Its Material value when no name was given.
public string Name { get; }
Property Value
RequiredTextures
The texture names the material needs.
public IReadOnlyList<string> RequiredTextures { get; }
Property Value
RequiredUniforms
The uniform names the material's shader must have.
public IReadOnlyList<string> RequiredUniforms { get; }
Property Value
SupportedPasses
The passes the material may be drawn in. Every pass when none was given.
public RenderPassTag SupportedPasses { get; }
Property Value
Methods
Supports(RenderPassTag)
Whether the material may be drawn in a pass with tag. None is always supported.
public bool Supports(RenderPassTag tag)
Parameters
tagRenderPassTag