Unbreak Camera::UnProjectPoint3.
The handedness was wrong, and this resulted in weird glitches while drawing anything that depends on AlignToPixelGrid, like normals.single-window
parent
01ae452507
commit
37defcbc33
|
@ -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 |
Loading…
Reference in New Issue