2 #include "meshbuilder.h"
3 #include "postprocessor.h"
9 void PostProcessor::render(Renderer &, const Texture2D &color, const Texture2D &depth)
14 const Mesh &PostProcessor::get_fullscreen_quad()
16 static const Mesh &mesh = create_fullscreen_quad();
20 const Mesh &PostProcessor::create_fullscreen_quad()
22 static Mesh mesh(VERTEX2);
23 MeshBuilder builder(mesh);
24 builder.begin(TRIANGLE_STRIP);
25 builder.vertex(-1, 1);
26 builder.vertex(-1, -1);
28 builder.vertex(1, -1);
34 PostProcessor::Template::Template():
39 PostProcessor::Template::Loader::Loader(Template &t):
40 DataFile::ObjectLoader<Template>(t)
42 add("size_divisor", &Template::size_divisor);