summaryrefslogtreecommitdiff
path: root/src/render/Shader.hpp
diff options
context:
space:
mode:
authorscorpion-26 <dev.scorpion26@gmail.com>2023-03-05 15:05:30 +0100
committerGitHub <noreply@github.com>2023-03-05 14:05:30 +0000
commitde5f1b2a833a59d3b0375f24675d27cea99e56d1 (patch)
tree5c299606df594c758c8dd462680de4ac2a41d42d /src/render/Shader.hpp
parentdc7d783d1439b92b16bfe1851c2b699e7c7267e0 (diff)
Optionally expose time to screen shaders (#1700)
* Optionally expose time to screen shaders Since that collides with damage tracking, it will only be done, when damage tracking is disabled, meaning this comes at no cost for everyone not using time. * Rename m_Timer to m_tGlobalTimer
Diffstat (limited to 'src/render/Shader.hpp')
-rw-r--r--src/render/Shader.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/Shader.hpp b/src/render/Shader.hpp
index a5aa6efb..6d3ca09b 100644
--- a/src/render/Shader.hpp
+++ b/src/render/Shader.hpp
@@ -37,6 +37,8 @@ class CShader {
GLint gradientLength;
GLint angle;
+ GLint time;
+
GLint getUniformLocation(const std::string&);
void destroy();