From de5f1b2a833a59d3b0375f24675d27cea99e56d1 Mon Sep 17 00:00:00 2001 From: scorpion-26 Date: Sun, 5 Mar 2023 15:05:30 +0100 Subject: 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 --- src/render/Shader.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/render/Shader.hpp') 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(); -- cgit v1.2.3