3D Editor treaks
This commit is contained in:
parent
8d167b960a
commit
573541ba2d
27 changed files with 254 additions and 124 deletions
|
|
@ -88,7 +88,7 @@ void Camera::lookAtPoint(const Vec3F& aTarget, const Vec3F& aPos, Vec3F aUp) {
|
|||
}
|
||||
mPos = aPos;
|
||||
mTarget = aTarget;
|
||||
Vec3F f = (mPos - mTarget).normalize();
|
||||
Vec3F f = (mTarget - mPos).normalize();
|
||||
mUp = f * (aUp.normalize() * f);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -714,7 +714,7 @@ namespace tp {
|
|||
out[0] = { in[0][0], in[0][1], in[0][2], 0 };
|
||||
out[1] = { in[1][0], in[1][1], in[1][2], 0 };
|
||||
out[2] = { in[2][0], in[2][1], in[2][2], 0 };
|
||||
out[3] = Type(1);
|
||||
out[3] = { Type(0), Type(0), Type(0), Type(1) };
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue