summaryrefslogtreecommitdiff
path: root/gui/src/ofxGpuLutBlend.h
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2018-09-10 23:24:49 +0100
committerTim Redfern <tim@getdrop.com>2018-09-10 23:24:49 +0100
commita0b504d11542097843db77653d3e26516a892593 (patch)
tree5bec9beb2a84a831059ada24c5523f27193ee8e2 /gui/src/ofxGpuLutBlend.h
parentfa5fc1eeaf7925024575f7154be1684534a62071 (diff)
lut blend
Diffstat (limited to 'gui/src/ofxGpuLutBlend.h')
-rw-r--r--gui/src/ofxGpuLutBlend.h26
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