X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpostprocessor.cpp;h=f67bf4cf701407feb086ddb45669394d51c7ff4b;hb=56133280d92c08c1c649a725260a6c4d5afb5e75;hp=28ae71b0945b2ca28e04cf3de34d60e222a36646;hpb=18240e2bb031551e9c72a55c7d974904d209760a;p=libs%2Fgl.git diff --git a/source/postprocessor.cpp b/source/postprocessor.cpp index 28ae71b0..f67bf4cf 100644 --- a/source/postprocessor.cpp +++ b/source/postprocessor.cpp @@ -3,20 +3,6 @@ #include "postprocessor.h" #include "shader.h" -namespace { - -const char fullscreen_vs_source[] = - "attribute vec4 vertex;\n" - "varying vec2 texcoord;\n" - "void main()\n" - "{\n" - " gl_Position = vertex;\n" - " texcoord = vertex.xy*0.5+0.5;\n" - "}\n"; - -} - - namespace Msp { namespace GL { @@ -25,12 +11,6 @@ void PostProcessor::render(Renderer &, const Texture2D &color, const Texture2D & render(color, depth); } -Shader &PostProcessor::get_fullscreen_vertex_shader() -{ - static VertexShader shader(fullscreen_vs_source); - return shader; -} - const Mesh &PostProcessor::get_fullscreen_quad() { static const Mesh &mesh = create_fullscreen_quad();