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

#include <LightMap.h>

Public Member Functions

 FLightSample ()
 

Public Attributes

float Coefficients [NUM_STORED_LIGHTMAP_COEF][3]
 
bool bIsMapped
 

Detailed Description

Incident lighting for a single sample, as produced by a lighting build. FGatheredLightSample is used for gathering lighting instead of this format as FLightSample is not additive.

Constructor & Destructor Documentation

◆ FLightSample()

FLightSample::FLightSample ( )
inline

Initialization constructor.

Member Data Documentation

◆ bIsMapped

bool FLightSample::bIsMapped

True if this sample maps to a valid point on a triangle. This is only meaningful for texture lightmaps.

◆ Coefficients

float FLightSample::Coefficients[NUM_STORED_LIGHTMAP_COEF][3]

Coefficients[0] stores the normalized average color, Coefficients[1] stores the maximum color component in each lightmap basis direction, and Coefficients[2] stores the simple lightmap which is colored incident lighting along the vertex normal.


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