Navigation
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 ( double InMesh3DArea, double InMeshUVArea, double InTargetTexelDensity )
Remarks
Compute the required texture size to achieve a target texel density, given the world to UV space ratio. The texture size needed to achieve the required texel density.
Parameters
Name | Description |
---|---|
InMesh3DArea | World space area of the mesh |
InMeshUVArea | UV space area of the mesh |