Navigation
API > API/Developer > API/Developer/MaterialUtilities > API/Developer/MaterialUtilities/FMaterialUtilities
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static int32 GetTextureSizeFromTargetTexelDensity
(
const FMeshDescription& InMesh, |
Compute the required texture size to achieve a target texel density for the given mesh. | MaterialUtilities.h | |
static int32 GetTextureSizeFromTargetTexelDensity
(
const UE::Geometry::FDynamicMesh3& Mesh, |
Compute the required texture size to achieve a target texel density for the given mesh. | MaterialUtilities.h | |
static int32 GetTextureSizeFromTargetTexelDensity
(
double InMesh3DArea, |
Compute the required texture size to achieve a target texel density, given the world to UV space ratio. | MaterialUtilities.h |
GetTextureSizeFromTargetTexelDensity(const FMeshDescription &, float)
Description
Compute the required texture size to achieve a target texel density for the given mesh.
| Name | GetTextureSizeFromTargetTexelDensity |
| Type | function |
| Header File | /Engine/Source/Developer/MaterialUtilities/Public/MaterialUtilities.h |
| Include Path | #include "MaterialUtilities.h" |
| Source | /Engine/Source/Developer/MaterialUtilities/Private/MaterialUtilities.cpp |
static int32 GetTextureSizeFromTargetTexelDensity
(
const FMeshDescription & InMesh,
float InTargetTexelDensity
)
The texture size needed to achieve the required texel density.
Parameters
| Name | Remarks |
|---|---|
| InMesh | The mesh for which we want to create a flatten material. |
| InTargetTexelDensity | The target texel density. |
GetTextureSizeFromTargetTexelDensity(const UE::Geometry::FDynamicMesh3 &, float)
Description
Compute the required texture size to achieve a target texel density for the given mesh.
| Name | GetTextureSizeFromTargetTexelDensity |
| Type | function |
| Header File | /Engine/Source/Developer/MaterialUtilities/Public/MaterialUtilities.h |
| Include Path | #include "MaterialUtilities.h" |
| Source | /Engine/Source/Developer/MaterialUtilities/Private/MaterialUtilities.cpp |
static int32 GetTextureSizeFromTargetTexelDensity
(
const UE::Geometry::FDynamicMesh3 & Mesh,
float TargetTexelDensity
)
The texture size needed to achieve the required texel density.
Parameters
| Name | Remarks |
|---|---|
| InMesh | The mesh for which we want to create a flatten material. |
| InTargetTexelDensity | The target texel density. |
GetTextureSizeFromTargetTexelDensity(double, double, double)
Description
Compute the required texture size to achieve a target texel density, given the world to UV space ratio.
| Name | GetTextureSizeFromTargetTexelDensity |
| Type | function |
| Header File | /Engine/Source/Developer/MaterialUtilities/Public/MaterialUtilities.h |
| Include Path | #include "MaterialUtilities.h" |
| Source | /Engine/Source/Developer/MaterialUtilities/Private/MaterialUtilities.cpp |
static int32 GetTextureSizeFromTargetTexelDensity
(
double InMesh3DArea,
double InMeshUVArea,
double InTargetTexelDensity
)
The texture size needed to achieve the required texel density.
Parameters
| Name | Remarks |
|---|---|
| InMesh3DArea | World space area of the mesh |
| InMeshUVArea | UV space area of the mesh |