FMaterialUtilities::GetTextureSizeFromTargetTexelDensity

Compute the required texture size to achieve a target texel density for the given mesh.

Unreal Engine C++ API Reference > Developer > MaterialUtilities > FMaterialUtilities > GetTextureSizeFromTargetTexelDensity

References

   
Module MaterialUtilities
Header /Engine/Source/Developer/MaterialUtilities/Public/MaterialUtilities.h
Include #include "MaterialUtilities.h"
Source /Engine/Source/Developer/MaterialUtilities/Private/MaterialUtilities.cpp
static int32 GetTextureSizeFromTargetTexelDensity
(
    const [FMeshDescription](API\Runtime\MeshDescription\FMeshDescription) & InMesh,
    float InTargetTexelDensity
)

Remarks

Compute the required texture size to achieve a target texel density for the given mesh. The texture size needed to achieve the required texel density.

Parameters

Name Description
InMesh The mesh for which we want to create a flatten material.
InTargetTexelDensity The target texel density.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library