diff options
| author | scorpion-26 <dev.scorpion26@gmail.com> | 2023-03-05 15:05:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-05 14:05:30 +0000 |
| commit | de5f1b2a833a59d3b0375f24675d27cea99e56d1 (patch) | |
| tree | 5c299606df594c758c8dd462680de4ac2a41d42d /src/render/Shader.hpp | |
| parent | dc7d783d1439b92b16bfe1851c2b699e7c7267e0 (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.hpp | 2 |
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(); |
