From ff4daae11db0ab811cac66e262d289a4107bba4a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 27 Dec 2017 23:48:41 +0100 Subject: Add uniform (shader global variable) --- include/RenderBackend/OpenGL/PixelShader.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/RenderBackend/OpenGL/PixelShader.hpp') 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 pixelAttributes; std::vector pixelAttributeNames; + std::unordered_map globalAttributes; bool mainFuncDefined; }; } -- cgit v1.2.3