use single shared framebuffer to render stroke previews

This commit is contained in:
2019-03-29 09:31:30 +01:00
parent d6804e95cd
commit 15db5c233b
2 changed files with 58 additions and 30 deletions

View File

@@ -15,15 +15,16 @@ class NodeStrokePreview : public NodeBorder
glm::vec4 m_mixer_rect;
};
RTT m_rtt;
RTT m_rtt_mixer;
Texture2D m_tex; // blending tmp texture
Texture2D m_tex_dual;
Texture2D m_tex_background;
Sampler m_sampler_linear;
Sampler m_sampler_linear_repeat;
Sampler m_sampler_mipmap;
DynamicShape m_brush_shape;
static RTT m_rtt;
static RTT m_rtt_mixer;
static Texture2D m_tex; // blending tmp texture
static Texture2D m_tex_dual;
static Texture2D m_tex_background;
static Sampler m_sampler_linear;
static Sampler m_sampler_linear_repeat;
static Sampler m_sampler_mipmap;
static DynamicShape m_brush_shape;
Texture2D m_tex_preview;
public:
static std::atomic_int s_instances;
static std::atomic_bool s_running;