mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
![Sergey Lipskiy](/assets/img/avatar_default.png)
Two pass rendering, using FBO. First pass: store pixel's texture coordinates in frame buffer texture. Second pass: calculate lod using frame buffer texture.
23 lines
458 B
C++
23 lines
458 B
C++
#ifndef GLSL_COMBINER_H
|
|
#define GLSL_COMBINER_H
|
|
|
|
class GLSLCombiner : public OGLCombiner {
|
|
public:
|
|
GLSLCombiner(Combiner *_color, Combiner *_alpha);
|
|
virtual void Set();
|
|
virtual void UpdateColors();
|
|
|
|
private:
|
|
GLhandleARB m_vertexShaderObject;
|
|
GLhandleARB m_fragmentShaderObject;
|
|
GLhandleARB m_programObject;
|
|
int m_nInputs;
|
|
};
|
|
|
|
void InitGLSLCombiner();
|
|
void DestroyGLSLCombiner();
|
|
void GLSL_CalcLOD();
|
|
void GLSL_PostCalcLOD();
|
|
|
|
#endif //GLSL_COMBINER_H
|