implement brush outline

This commit is contained in:
2019-01-18 11:11:00 +01:00
parent 580fab77c6
commit 8315b32550
4 changed files with 18 additions and 2 deletions

View File

@@ -1090,8 +1090,9 @@ bool Canvas::create(int width, int height)
}
m_sampler.create(GL_NEAREST);
m_sampler.create(GL_LINEAR);
m_sampler_brush.create();
m_sampler_brush.create(GL_LINEAR, GL_CLAMP_TO_BORDER);
m_sampler_brush.set_filter(GL_LINEAR_MIPMAP_LINEAR, GL_LINEAR);
m_sampler_brush.set_border({ 1, 1, 1, 1 });
m_sampler_bg.create(GL_NEAREST);
m_sampler_mask.create(GL_LINEAR);
m_sampler_stencil.create(GL_LINEAR, GL_REPEAT);