updated glm, drawing modern triangle