Interface IShaderProgram
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
public interface IShaderProgram : IDisposable
- Inherited Members
- Extension Methods
Properties
AssetDomain
When loading from file this is the asset domain to load from
string AssetDomain { get; set; }
Property Value
ClampTexturesToEdge
If true, it well configure the textures to clamp to the edge (CLAMP_TO_EDGE). Requires the textureid to be defined using SetTextureIds
bool ClampTexturesToEdge { get; set; }
Property Value
Disposed
True if this shader has been disposed
bool Disposed { get; }
Property Value
FragmentShader
The fragment shader of this shader program
IShader FragmentShader { get; set; }
Property Value
GeometryShader
The geometry shader of this shader program
IShader GeometryShader { get; set; }
Property Value
LoadError
bool LoadError { get; }
Property Value
PassId
A uniqe shader pass number assigned to each shader program
int PassId { get; }
Property Value
PassName
The name it was registered with. If you want to load this shader from a file, make sure the use the filename here
string PassName { get; }
Property Value
UBOs
OrderedDictionary<string, UBORef> UBOs { get; }
Property Value
VertexShader
The vertex shader of this shader program
IShader VertexShader { get; set; }
Property Value
Methods
BindTexture2D(string, int, int)
void BindTexture2D(string samplerName, int textureId, int textureNumber)
Parameters
BindTextureCube(string, int, int)
void BindTextureCube(string samplerName, int textureId, int textureNumber)
Parameters
Compile()
bool Compile()
Returns
HasUniform(string)
bool HasUniform(string uniformName)
Parameters
uniformName
string
Returns
Stop()
void Stop()
Uniform(string, int)
void Uniform(string uniformName, int value)
Parameters
Uniform(string, float)
void Uniform(string uniformName, float value)
Parameters
Uniform(string, Vec2f)
void Uniform(string uniformName, Vec2f value)
Parameters
Uniform(string, Vec3f)
void Uniform(string uniformName, Vec3f value)
Parameters
Uniform(string, Vec4f)
void Uniform(string uniformName, Vec4f value)
Parameters
UniformMatrices(string, int, float[])
void UniformMatrices(string uniformName, int count, float[] matrix)
Parameters
UniformMatrices4x3(string, int, float[])
void UniformMatrices4x3(string uniformName, int count, float[] matrix)
Parameters
UniformMatrix(string, float[])
void UniformMatrix(string uniformName, float[] matrix)
Parameters
Uniforms4(string, int, float[])
void Uniforms4(string uniformName, int count, float[] values)
Parameters
Use()
void Use()