-
Notifications
You must be signed in to change notification settings - Fork 1
/
TubePass.h
61 lines (45 loc) · 1.29 KB
/
TubePass.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//
// TubePass.h
// shaderview
//
// Created by Joseph Wilk on 18/09/2017.
//
//
#pragma once
#include "RenderPass.h"
#include "ofShader.h"
namespace itg
{
class TubePass : public RenderPass
{
public:
typedef shared_ptr<TubePass> Ptr;
TubePass(const ofVec2f& aspect, bool arb, float centerX = 0.5, float centerY = 0.5,
float exposure = 0.48, float decay = 0.9, float density = 0.25,
float weight = 0.25, float clamp = 1);
void render(ofFbo& readFbo, ofFbo& writeFbo, ofTexture& depth);
void setCenterX(float v){ centerX = v; }
float getCenterX() { return centerX; }
void setCenterY(float v){ centerY = v; }
float getCenterY() { return centerY; }
void setExposure(float v){ exposure = v; }
float getExposure() { return exposure; }
void setDecay(float v){ decay = v; }
float getDecay() { return decay; }
void setDensity(float v){ density = v; }
float getDensity() { return density; }
void setWeight(float v){ weight = v; }
float getWeight() { return weight; }
void setClamp(float v){ clamp = v; }
float getClamp() { return clamp; }
private:
ofShader shader;
float centerX;
float centerY;
float exposure;
float decay;
float density;
float weight;
float clamp;
};
}