Fix large worlds rendering of meshes
Add `Double4x4` for higher precision matrices operations #2985
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
|
||||
|
||||
#include "Transform.h"
|
||||
#include "Double4x4.h"
|
||||
#include "Matrix.h"
|
||||
#include "Matrix3x3.h"
|
||||
#include "../Types/String.h"
|
||||
@@ -57,6 +58,11 @@ void Transform::GetWorld(Matrix& result) const
|
||||
Matrix::Transformation(Scale, Orientation, Translation, result);
|
||||
}
|
||||
|
||||
void Transform::GetWorld(Double4x4& result) const
|
||||
{
|
||||
Double4x4::Transformation(Scale, Orientation, Translation, result);
|
||||
}
|
||||
|
||||
Transform Transform::Add(const Vector3& translation) const
|
||||
{
|
||||
Transform result;
|
||||
|
||||
Reference in New Issue
Block a user