FMaterialUtilities::ComputeRequiredTexelDensityFromScreenSize

Compute the required texel density needed to properly represent an object/objects covering the provided world space radius

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

References

   
Module MaterialUtilities
Header /Engine/Source/Developer/MaterialUtilities/Public/MaterialUtilities.h
Include #include "MaterialUtilities.h"
Source /Engine/Source/Developer/MaterialUtilities/Private/MaterialUtilities.cpp
static float ComputeRequiredTexelDensityFromScreenSize
(
    const float InScreenSize,
    float InWorldSpaceRadius
)

Remarks

Compute the required texel density needed to properly represent an object/objects covering the provided world space radius The required texel density per METER

Parameters

Name Description
InScreenSize Screen size at which the objects are expected to be be shown
InWorldSpaceRadius World space radius of the objects

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library