Table of Contents

Class DrawMeshInstanced

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that draws the specified mesh geometry using instanced rendering, where each array in the sequence stores the per-instance attributes.

public class DrawMeshInstanced : Sink<Mat>
Inheritance
DrawMeshInstanced
Inherited Members

Properties

InstanceAttributes

Gets a collection of instance attributes specifying how to map instance buffer data into per-instance input values in the vertex shader.

MeshName

Gets or sets the name of the mesh geometry to draw.

ShaderName

Gets or sets the name of the material shader program used in the drawing operation.

Usage

Gets or sets a value specifying the expected usage pattern of the instance buffer data.

Methods

Process(IObservable<Mat>)

Draws the specified mesh geometry using instanced rendering, where each of the matrix data in an observable sequence stores the per-instance attributes.

Process<TVertex>(IObservable<TVertex[]>)

Draws the specified mesh geometry using instanced rendering, where each array in an observable sequence stores the per-instance attributes.