Navigation
API > API/Runtime > API/Runtime/GeometryCore
Description
Calculate conservative bounds of the squared error of the displaced position.
VertexNormals and Displacements are given on the corners of a base-triangle. The subtriangle to evaluate on is defined by the Barycentrics. UVBounds are given with respect to subtriangle.
DisplacementBoundsRefinements controls the accuracy of the bounds when retrieving bounds from the displacement map (quality speed/tradeoff). See FDisplacementMap::SampleHierarchical.
Magnitude, Center are the usual affine maps on FDisplacementMap values. Set to 1 and 0 if they are already set on the displacement map. They are only provided here, to allow modification without changing the displacement map.
| Name | UE::Geometry::TessellationUtil::CalculateErrorBounds |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Tessellation/AdaptiveMetrics.h |
| Include Path | #include "Tessellation/AdaptiveMetrics.h" |
namespace UE
{
namespace Geometry
{
namespace TessellationUtil
{
template<typename T>
UE::Math::TVector2 < T > UE::Geometry::TessellationUtil::CalculateErrorBounds
(
const UE::Math::TVector < T > Barycentrics,
const UE::Math::TVector < T > VertexNormals,
const FVector2f UVBounds,
const UE::Math::TVector < T > Displacements,
const FDisplacementMap & DisplacementMap,
const float Center,
const FVector2f MagnitudeBounds,
const int32 DisplacementBoundsRefinements
)
}
}
}