~nexyon/+junk/qtshadows

« back to all changes in this revision

Viewing changes to Renderer.h

  • Committer: Jörg Müller
  • Date: 2012-06-21 13:03:11 UTC
  • Revision ID: nexyon@gmail.com-20120621130311-v285juhbrqexlrgj
First version of analytical shadows, lots of problems though:

- Only one specific shadow caster supported at the moment.
- View depedency - need to split model and view matrix for the shader.
- Other problems: current code has some problems with other examples than the one committed (like different radius and distances).

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        QGLShader* stencil_fs;
42
42
        QGLShaderProgram* stencil_prog;
43
43
 
 
44
        QGLShader* analytical_vs;
 
45
        QGLShader* analytical_fs;
 
46
        QGLShaderProgram* analytical_prog;
 
47
 
44
48
public:
45
49
        Renderer();
46
50
        ~Renderer();