mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-09 09:51:01 +00:00
51 lines
No EOL
1.4 KiB
C++
51 lines
No EOL
1.4 KiB
C++
//
|
|
//---------------------------------------------------------------------------
|
|
//
|
|
// Copyright(C) 2015 Christopher Bruns
|
|
// All rights reserved.
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Lesser General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Lesser General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
// along with this program. If not, see http://www.gnu.org/licenses/
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
//
|
|
/*
|
|
** gl_present3dRowshader.h
|
|
** Final composition and present shader for row-interleaved stereoscopic 3D mode
|
|
**
|
|
*/
|
|
|
|
#ifndef GL_PRESENT3DROWSHADER_H_
|
|
#define GL_PRESENT3DROWSHADER_H_
|
|
|
|
#include "gl_shaderprogram.h"
|
|
|
|
class FPresent3DRowShader
|
|
{
|
|
public:
|
|
void Bind();
|
|
|
|
FBufferedUniformSampler LeftEyeTexture;
|
|
FBufferedUniformSampler RightEyeTexture;
|
|
FBufferedUniform1f InvGamma;
|
|
FBufferedUniform1f Contrast;
|
|
FBufferedUniform1f Brightness;
|
|
FBufferedUniform2f Scale;
|
|
FBufferedUniform1i VerticalPixelOffset;
|
|
|
|
private:
|
|
FShaderProgram mShader;
|
|
};
|
|
|
|
// GL_PRESENT3DROWSHADER_H_
|
|
#endif |