UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FLensDistortionLUT Struct Reference

#include <LensDistortion.h>

Public Member Functions

bool IsEnabled () const
 

Public Attributes

FRDGTextureRef DistortingDisplacementTexture = nullptr
 
FRDGTextureRef UndistortingDisplacementTexture = nullptr
 
float ResolutionFraction = 1.0f
 
float DistortionOverscan = 1.0f
 
FIntPoint DistortionGridDimensions = FIntPoint(32, 20)
 

Static Public Attributes

static constexpr EPixelFormat kFormat = PF_G32R32F
 

Member Function Documentation

◆ IsEnabled()

bool FLensDistortionLUT::IsEnabled ( ) const
inline

Returns whether the displacement is enabled.

Member Data Documentation

◆ DistortingDisplacementTexture

FRDGTextureRef FLensDistortionLUT::DistortingDisplacementTexture = nullptr

DistortedViewportUV = UndistortedViewportUV + DistortingDisplacementTexture.Sample(UndistortedViewportUV)

◆ DistortionGridDimensions

FIntPoint FLensDistortionLUT::DistortionGridDimensions = FIntPoint(32, 20)

The distortion warp grid dimensions to use when distorting during the upscale pass

◆ DistortionOverscan

float FLensDistortionLUT::DistortionOverscan = 1.0f

For distortion maps that don't fill the whole frustum, this is the amount of overscan they require but do not fill

◆ kFormat

constexpr EPixelFormat FLensDistortionLUT::kFormat = PF_G32R32F
staticconstexpr

Expected pixel format of the LUT. 16bit floating point do not work when distorting in TSR.

◆ ResolutionFraction

float FLensDistortionLUT::ResolutionFraction = 1.0f

Resolution fraction of the upscaling happening due to distortion.

◆ UndistortingDisplacementTexture

FRDGTextureRef FLensDistortionLUT::UndistortingDisplacementTexture = nullptr

UndistortedViewportUV = DistortedViewportUV + UndistortingDisplacementTexture.BilinearSample(DistortedViewportUV)


The documentation for this struct was generated from the following file: