implement stencil from file

This commit is contained in:
2019-01-15 23:54:08 +01:00
parent f5c4aed4fd
commit 9c93747b17
9 changed files with 26 additions and 7 deletions

View File

@@ -80,7 +80,7 @@ void NodeStrokePreview::draw_stroke()
tex.bind();
m_sampler_brush.bind(0);
auto& stencil = TextureManager::get(const_hash("data/paper.jpg"));
auto& stencil = TextureManager::get(b.m_tex_stencil_id);
glActiveTexture(GL_TEXTURE1);
stencil.bind();
m_sampler.bind(1);