fix pressure spacing, blend mode preview

This commit is contained in:
2019-06-25 22:16:36 +02:00
parent 746726e5b3
commit a15d3acaef
4 changed files with 13 additions and 3 deletions

View File

@@ -20,6 +20,8 @@ void NodeCanvas::init()
m_sampler.create();
m_sampler.set_filter(GL_LINEAR, GL_NEAREST);
m_sampler_nearest.create(GL_NEAREST);
m_sampler_linear.create(GL_LINEAR);
m_sampler_stencil.create(GL_LINEAR, GL_REPEAT);
m_face_plane.create<1>(2, 2);
@@ -493,7 +495,7 @@ void NodeCanvas::draw()
glViewport(c.x + App::I.off_x, c.y + App::I.off_y, c.z, c.w);
// draw the canvas
m_sampler_linear.bind(0);
m_sampler_nearest.bind(0);
glActiveTexture(GL_TEXTURE0);
m_rtt.bindTexture();
ShaderManager::use(kShader::Texture);