implement the complete stroke shader with custom blending mode

This commit is contained in:
2017-04-05 15:55:11 +01:00
parent dc693b2232
commit 9a4fd5e5c9
13 changed files with 265 additions and 46 deletions

View File

@@ -17,11 +17,14 @@ public:
int m_width;
int m_height;
bool m_use_instanced = false;
bool m_show_tmp = false;
std::vector<Layer> m_layers;
std::vector<Stroke> m_strokes;
std::unique_ptr<Layer> m_tmp;
RTT m_tmp;
RTT m_fb;
Texture2D m_tex;
Sampler m_sampler;
Sampler m_sampler_bg;
bool create(int width, int height);
void resize(int width, int height);
@@ -30,6 +33,7 @@ public:
void stroke_update(glm::vec2 point, float pressure);
void stroke_draw();
void stroke_end();
void stroke_commit();
void clear();
};