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

#include <SceneManagement.h>

Public Member Functions

ENGINE_API void MakeShaderParameters (const FViewMatrices &ViewMatrices, float Exposure, FLightShaderParameters &OutShaderParameters) const
 
ENGINE_API float GetLightExposureScale (float Exposure) const
 

Static Public Member Functions

static ENGINE_API float GetLightExposureScale (float Exposure, float InverseExposureBlend)
 
static float GetRectLightAtlasInvalidMIPLevel ()
 

Public Attributes

FVector WorldPosition
 
float InvRadius
 
FLinearColor Color
 
float FalloffExponent
 
FVector3f Direction
 
float SpecularScale
 
float DiffuseScale
 
FVector3f Tangent
 
float SourceRadius
 
FVector2f SpotAngles
 
float SoftSourceRadius
 
float SourceLength
 
float RectLightBarnCosAngle
 
float RectLightBarnLength
 
FVector2f RectLightAtlasUVOffset
 
FVector2f RectLightAtlasUVScale
 
float RectLightAtlasMaxLevel
 
float IESAtlasIndex
 
uint32 LightFunctionAtlasLightIndex
 
uint32 bAffectsTranslucentLighting
 
float InverseExposureBlend
 

Detailed Description

Shader paraneter structure for rendering lights. Generic parameters used to render a light Has a 1:1 mapping with FLightShaderParameters, but can also be used in other contexts Primary difference is position is stored as FVector3d in absolute world space, which is not appropriate for sending directly to GPU

Member Function Documentation

◆ GetLightExposureScale() [1/2]

float FLightRenderParameters::GetLightExposureScale ( float  Exposure) const

◆ GetLightExposureScale() [2/2]

float FLightRenderParameters::GetLightExposureScale ( float  Exposure,
float  InverseExposureBlend 
)
static

◆ GetRectLightAtlasInvalidMIPLevel()

static float FLightRenderParameters::GetRectLightAtlasInvalidMIPLevel ( )
inlinestatic

◆ MakeShaderParameters()

void FLightRenderParameters::MakeShaderParameters ( const FViewMatrices ViewMatrices,
float  Exposure,
FLightShaderParameters OutShaderParameters 
) const

Member Data Documentation

◆ bAffectsTranslucentLighting

uint32 FLightRenderParameters::bAffectsTranslucentLighting

◆ Color

FLinearColor FLightRenderParameters::Color

◆ DiffuseScale

float FLightRenderParameters::DiffuseScale

◆ Direction

FVector3f FLightRenderParameters::Direction

◆ FalloffExponent

float FLightRenderParameters::FalloffExponent

◆ IESAtlasIndex

float FLightRenderParameters::IESAtlasIndex

◆ InverseExposureBlend

float FLightRenderParameters::InverseExposureBlend

◆ InvRadius

float FLightRenderParameters::InvRadius

◆ LightFunctionAtlasLightIndex

uint32 FLightRenderParameters::LightFunctionAtlasLightIndex

◆ RectLightAtlasMaxLevel

float FLightRenderParameters::RectLightAtlasMaxLevel

◆ RectLightAtlasUVOffset

FVector2f FLightRenderParameters::RectLightAtlasUVOffset

◆ RectLightAtlasUVScale

FVector2f FLightRenderParameters::RectLightAtlasUVScale

◆ RectLightBarnCosAngle

float FLightRenderParameters::RectLightBarnCosAngle

◆ RectLightBarnLength

float FLightRenderParameters::RectLightBarnLength

◆ SoftSourceRadius

float FLightRenderParameters::SoftSourceRadius

◆ SourceLength

float FLightRenderParameters::SourceLength

◆ SourceRadius

float FLightRenderParameters::SourceRadius

◆ SpecularScale

float FLightRenderParameters::SpecularScale

◆ SpotAngles

FVector2f FLightRenderParameters::SpotAngles

◆ Tangent

FVector3f FLightRenderParameters::Tangent

◆ WorldPosition

FVector FLightRenderParameters::WorldPosition

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