Table of Contents

Class Shader

Namespace
Crux.Graphics
Assembly
Crux.dll
public class Shader
Inheritance
Shader
Inherited Members

Constructors

Shader(string, string, string, bool)

public Shader(string vertexShaderPath, string fragmentShaderPath, string colorTexturePath, bool useInstancing)

Parameters

vertexShaderPath string
fragmentShaderPath string
colorTexturePath string
useInstancing bool

Fields

UseInstancing

public bool UseInstancing

Field Value

bool

Properties

ColorTexturePath

public string ColorTexturePath { get; init; }

Property Value

string

FragmentShaderPath

public string FragmentShaderPath { get; init; }

Property Value

string

TextureHue

public Color4 TextureHue { get; set; }

Property Value

Color4

VertexShaderPath

public string VertexShaderPath { get; init; }

Property Value

string

Methods

Bind()

public void Bind()

Clone()

public Shader Clone()

Returns

Shader

Delete()

public void Delete()

SetUniform(string, object)

public void SetUniform(string uniformName, object value)

Parameters

uniformName string
value object

Unbind()

public void Unbind()