mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-13 07:57:58 +00:00
84458ddb9f
This is something that really should be done in higher level code - the shader interface should only concern itself with the shader and not the conditions that block its use. The Shader class has been redone as a thin wrapper and been deprecated.
8 lines
492 B
Text
8 lines
492 B
Text
struct PPShader native
|
|
{
|
|
native clearscope static void SetEnabled(string shaderName, bool enable);
|
|
native clearscope static void SetUniform1f(string shaderName, string uniformName, float value);
|
|
native clearscope static void SetUniform2f(string shaderName, string uniformName, vector2 value);
|
|
native clearscope static void SetUniform3f(string shaderName, string uniformName, vector3 value);
|
|
native clearscope static void SetUniform1i(string shaderName, string uniformName, int value);
|
|
}
|