diff options
| author | Tim Redfern <tim@getdrop.com> | 2018-09-10 23:24:49 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2018-09-10 23:24:49 +0100 |
| commit | a0b504d11542097843db77653d3e26516a892593 (patch) | |
| tree | 5bec9beb2a84a831059ada24c5523f27193ee8e2 /gui/src/ofxGpuLutBlend.h | |
| parent | fa5fc1eeaf7925024575f7154be1684534a62071 (diff) | |
lut blend
Diffstat (limited to 'gui/src/ofxGpuLutBlend.h')
| -rw-r--r-- | gui/src/ofxGpuLutBlend.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gui/src/ofxGpuLutBlend.h b/gui/src/ofxGpuLutBlend.h new file mode 100644 index 0000000..d2f7d33 --- /dev/null +++ b/gui/src/ofxGpuLutBlend.h @@ -0,0 +1,26 @@ +#pragma once + +#include "ofMain.h" + +#define STRINGIFY(e) #e + +class ofxGpuLutBlend{ + +private: + ofShader lutShader; + ofTexture lut; + string vertexShader; + string fragmentShader; + ofImage lutImage; + float blendAmt; +public: + ofxGpuLutBlend(); + ~ofxGpuLutBlend(); + + void load(ofTexture lutTexture); + void load(ofImage lutImage); + void load(string path); + void setBlend(float amt); + void begin(); + void end(); +};
\ No newline at end of file |
