Table of Contents

Class Material

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Provides functionality for rendering geometry using a shaded material pass using the specified vertex, geometry or fragment shader.

public class Material : Effect, IDisposable
Inheritance
Material
Implements
Inherited Members

Properties

Mesh

Gets the geometry to draw when running the material pass.

public Mesh Mesh { get; }

Property Value

Mesh

Methods

OnDispatch()

Returns any actions that should be executed before running the shader program.

protected override Action OnDispatch()

Returns

Action

An Action object to be called before running the shader program. If the return value is null, no action will be executed.