diff options
author | dec05eba <dec05eba@protonmail.com> | 2017-12-27 23:48:41 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-18 15:21:48 +0100 |
commit | ff4daae11db0ab811cac66e262d289a4107bba4a (patch) | |
tree | 7b62216d578a59b940dada8e794355dfb7ff3273 /include/RenderBackend/OpenGL/PixelShader.hpp | |
parent | 2d8b61bf9fc36e933a0091e1098e62faf143412c (diff) |
Add uniform (shader global variable)
Diffstat (limited to 'include/RenderBackend/OpenGL/PixelShader.hpp')
-rw-r--r-- | include/RenderBackend/OpenGL/PixelShader.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/RenderBackend/OpenGL/PixelShader.hpp b/include/RenderBackend/OpenGL/PixelShader.hpp index e025c6f..6794fb1 100644 --- a/include/RenderBackend/OpenGL/PixelShader.hpp +++ b/include/RenderBackend/OpenGL/PixelShader.hpp @@ -54,6 +54,7 @@ namespace amalgine const std::string& getOutputAttributeName(i32 attributeIndex); ShaderOutputVec4 defineOutputVec4(const std::string &name); + ShaderGlobalVec3 defineGlobalVec3(const std::string &name); void defineMain(PixelShaderMainFunc mainFunc); void assign(const ShaderOutputVec4 &lhsVariable, const ShaderVec4 &rhsVariable); @@ -75,6 +76,7 @@ namespace amalgine i32 maxPixelAttribs; // Could make this static std::unordered_map<std::string, i32> pixelAttributes; std::vector<ShaderAttribute> pixelAttributeNames; + std::unordered_map<std::string, ShaderGlobalVec> globalAttributes; bool mainFuncDefined; }; } |