PostProcessing: Add layered stereoscopy support.

This commit is contained in:
Jules Blok
2014-10-22 13:02:28 +02:00
parent 81e9004679
commit c64486075d
4 changed files with 44 additions and 15 deletions

View File

@ -23,7 +23,7 @@ public:
~OpenGLPostProcessing();
void BlitFromTexture(TargetRectangle src, TargetRectangle dst,
int src_texture, int src_width, int src_height) override;
int src_texture, int src_width, int src_height, int layer) override;
void ApplyShader() override;
private:
@ -32,6 +32,7 @@ private:
GLuint m_uniform_resolution;
GLuint m_uniform_src_rect;
GLuint m_uniform_time;
GLuint m_uniform_layer;
std::string m_glsl_header;
// These are only used when working around Qualcomm's broken attributeless rendering