fixed placement velocity being wrong if mouse was not moved.
use QOpenGLShaderProgram's attribute functions.