git-svn-id: svn://db.shs.com.ru/libs@48 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2015-11-26 21:42:43 +00:00
parent 4cbcbb5174
commit 59eb135a60
14 changed files with 419 additions and 42861 deletions

View File

@@ -40,12 +40,15 @@ protected:
void setupAmbientLight(const QColor & a, bool first_pass);
private:
typedef QPair<QString, QGLShaderProgram **> ShaderPair;
int cplc, BUG[8], lights_per_pass;
double exposure_;
GLFramebuffer fbo_g, fbo_out, fbo_hsmall;
QGLShaderProgram * shader_fxaa, * shader_ds_0, * shader_ds_1, * shader_hdr, * shader_small;
QGLShaderProgram * shader_fxaa, * shader_ds_0, * shader_ds_1, * shader_hdr, * shader_small, * shader_motion_blur;
QVector<ShaderPair> shaders;
QMatrix4x4 pm, mvm, mvpm, pim, mvim, mvpim;
QMatrix4x4 prev_view, prev_proj;
QMatrix3x3 nm;
QVector4D corner_dirs[4];
QVector<Vector3d> hcontent;