Table of Contents

Class MaterialDefinition

Namespace
BSGameLib.Game.Rendering
Assembly
BSGameLib.Game.dll

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

Material

Name

The material's name, for diagnostics. Its Material value when no name was given.

public string Name { get; }

Property Value

string

RequiredTextures

The texture names the material needs.

public IReadOnlyList<string> RequiredTextures { get; }

Property Value

IReadOnlyList<string>

RequiredUniforms

The uniform names the material's shader must have.

public IReadOnlyList<string> RequiredUniforms { get; }

Property Value

IReadOnlyList<string>

SupportedPasses

The passes the material may be drawn in. Every pass when none was given.

public RenderPassTag SupportedPasses { get; }

Property Value

RenderPassTag

Methods

Supports(RenderPassTag)

Whether the material may be drawn in a pass with tag. None is always supported.

public bool Supports(RenderPassTag tag)

Parameters

tag RenderPassTag

Returns

bool