git-svn-id: svn://db.shs.com.ru/libs@44 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -30,17 +30,28 @@ public:
|
||||
virtual void renderScene();
|
||||
|
||||
protected:
|
||||
virtual void init(int width, int height) {fbo.resize(width, height);}
|
||||
virtual void resize(int width, int height) {fbo.resize(width, height);}
|
||||
virtual void reloadShaders();
|
||||
virtual void setupShadersTextures(GLObjectBase & object, RenderingParameters & rp);
|
||||
virtual void setupShadersLights(int lights_count) {cplc = lights_count;}
|
||||
void init(int width, int height) {fbo.resize(width, height);}
|
||||
void resize(int width, int height) {fbo.resize(width, height);}
|
||||
void reloadShaders();
|
||||
void setupShadersTextures(GLObjectBase & object, RenderingParameters & rp);
|
||||
void setupShadersLights(int lights_count) {cplc = lights_count;}
|
||||
void setupDSLights(int pass, int lights_per_pass, const QMatrix4x4 & view_matrix);
|
||||
void setupAmbientLight(const QColor & a, bool first_pass);
|
||||
|
||||
void prepareUniform();
|
||||
void setUniform(QGLShaderProgram * prog);
|
||||
void drawFB(QGLShaderProgram * prog);
|
||||
|
||||
private:
|
||||
int cplc;
|
||||
GLFramebuffer fbo;
|
||||
QGLShaderProgram * shader_fxaa, * shader_ds_0, * shader_ds_1;
|
||||
|
||||
QMatrix4x4 pm, mvm, mvpm, pim, mvim, mvpim;
|
||||
QMatrix3x3 nm;
|
||||
QVector4D corner_dirs[4];
|
||||
Light amb_light;
|
||||
|
||||
};
|
||||
|
||||
#endif // RENDERER_DEFERRED_SHADING_H
|
||||
|
||||
Reference in New Issue
Block a user