diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-07-07 23:21:25 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-07-07 23:21:25 +0100 |
commit | 07064efcfecb0f1140f829ee2481079fa02cc587 (patch) | |
tree | ad9914fc74c46cacbfb6a1187ce99cb89171521a /gfx/gl/uiShader.cpp | |
parent | Add shadow shader which takes into account texture transparency (diff) | |
download | ilt-07064efcfecb0f1140f829ee2481079fa02cc587.tar.bz2 ilt-07064efcfecb0f1140f829ee2481079fa02cc587.tar.xz ilt-07064efcfecb0f1140f829ee2481079fa02cc587.zip |
Simplify setup of uniform locations and containing programs
Diffstat (limited to 'gfx/gl/uiShader.cpp')
-rw-r--r-- | gfx/gl/uiShader.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gfx/gl/uiShader.cpp b/gfx/gl/uiShader.cpp index bb9570e..23da9dc 100644 --- a/gfx/gl/uiShader.cpp +++ b/gfx/gl/uiShader.cpp @@ -10,10 +10,7 @@ UIShader::IconProgram::IconProgram(const glm::mat4 & vp) : UIProgram {vp, uiShader_vs, uiShader_fs} { } -UIShader::TextProgram::TextProgram(const glm::mat4 & vp) : - UIProgram {vp, uiShader_vs, uiShaderFont_fs}, colorLoc {*this, "colour"} -{ -} +UIShader::TextProgram::TextProgram(const glm::mat4 & vp) : UIProgram {vp, uiShader_vs, uiShaderFont_fs} { } UIShader::UIShader(size_t width, size_t height) : UIShader {glm::ortho<float>(0, static_cast<float>(width), 0, static_cast<float>(height))} |