Move FS template declaration in shaders.hpp
This commit is contained in:
parent
4b2abef56c
commit
3f8fdc7976
@ -205,15 +205,6 @@ void PostProcessing::update(float dt)
|
||||
}
|
||||
} // update
|
||||
|
||||
template<typename T,typename... Args>
|
||||
static void DrawFullScreenEffect(Args...args)
|
||||
{
|
||||
glUseProgram(T::getInstance()->Program);
|
||||
glBindVertexArray(SharedObject::FullScreenQuadVAO);
|
||||
T::getInstance()->setUniforms(args...);
|
||||
glDrawArrays(GL_TRIANGLES, 0, 3);
|
||||
}
|
||||
|
||||
static
|
||||
void renderBloom(GLuint in)
|
||||
{
|
||||
|
@ -370,6 +370,15 @@ public:
|
||||
};
|
||||
}
|
||||
|
||||
template<typename T, typename... Args>
|
||||
static void DrawFullScreenEffect(Args...args)
|
||||
{
|
||||
glUseProgram(T::getInstance()->Program);
|
||||
glBindVertexArray(SharedObject::FullScreenQuadVAO);
|
||||
T::getInstance()->setUniforms(args...);
|
||||
glDrawArrays(GL_TRIANGLES, 0, 3);
|
||||
}
|
||||
|
||||
namespace FullScreenShader
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user