Unbreak Camera::UnProjectPoint3.

The handedness was wrong, and this resulted in weird glitches
while drawing anything that depends on AlignToPixelGrid, like
normals.
single-window
EvilSpirit 2016-11-19 13:50:38 +07:00 committed by whitequark
parent 01ae452507
commit 37defcbc33
3 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ Vector Camera::UnProjectPoint3(Vector p) const {
Vector orig = offset.ScaledBy(-1);
orig = orig.Plus(projRight.ScaledBy(p.x)).Plus(
projUp. ScaledBy(p.y).Plus(
projRight.Cross(projUp). ScaledBy(p.z)));
projUp.Cross(projRight). ScaledBy(p.z)));
return orig;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB