blob: 55befd92cd42ad27a48e5faa6880f689f1f7228d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#pragma once
#include <GL/glew.h>
#include "Shader.h"
class FXAAHelper{
public:
int Width, Height;
Shader computeLuma, fxaa;
FXAAHelper(const char* resourcePath);
void Resize(int w, int h);
void StartFXAA(); // Call before rendering things
void EndFXAA(GLuint oldFBO); // Compute luma and then do FXAA
void Destroy();
GLuint FBO, depthTex, imgTex, imgWithLumaTex;
};
|