Class Shader
- Namespace
- Crux.Graphics
- Assembly
- Crux.dll
- 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()
Clone()
Returns
- Shader
Delete()
public void SetUniform(string uniformName, object value)
Parameters
uniformName
string
value
object
Unbind()