fix pressure spacing, blend mode preview
This commit is contained in:
@@ -291,7 +291,7 @@ void Stroke::add_point(glm::vec3 pos, float pressure)
|
||||
float aspect_width = glm::min(1.f, glm::clamp(m_brush->m_tip_aspect, .1f, .9f) * 2.f);
|
||||
float raw_size = glm::clamp(m_brush->m_tip_size / glm::tan(glm::radians(m_camera.fov * 0.5f)), 1.f, m_max_size);
|
||||
float size = aspect_width * glm::min(m_brush->m_tip_scale.x, m_brush->m_tip_scale.y) * raw_size;
|
||||
m_step = glm::max(0.5f, m_brush->m_tip_spacing * size * App::I.zoom);
|
||||
m_step = glm::max(0.5f, m_brush->m_tip_spacing * size * App::I.zoom * pressure);
|
||||
}
|
||||
|
||||
float dist = m_keypoints.empty() ? m_step :
|
||||
|
||||
Reference in New Issue
Block a user