From 0c90cd799d11c9b63a40364ff418afcbc2867609 Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 25 Jul 2016 10:07:28 +0000 Subject: [PATCH] Align normals and workplanes to pixel grid. They look much sharper and nicer this way, and more similar to 2.0. --- src/drawentity.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drawentity.cpp b/src/drawentity.cpp index 8ccd9230..d0f02e9d 100644 --- a/src/drawentity.cpp +++ b/src/drawentity.cpp @@ -581,6 +581,7 @@ void Entity::Draw(DrawAs how, Canvas *canvas) { } else { tail = SK.GetEntity(point[0])->PointGetNum(); } + tail = camera.AlignToPixelGrid(tail); Vector v = (q.RotationN()).WithMagnitude(50.0 / camera.scale); Vector tip = tail.Plus(v); canvas->DrawLine(tail, tip, hcs); @@ -602,6 +603,7 @@ void Entity::Draw(DrawAs how, Canvas *canvas) { const Camera &camera = canvas->GetCamera(); Vector p = SK.GetEntity(point[0])->PointGetNum(); + p = camera.AlignToPixelGrid(p); Vector u = Normal()->NormalU(); Vector v = Normal()->NormalV();