FLightSample

Incident lighting for a single sample, as produced by a lighting build.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/LightMap.h

Include

#include "LightMap.h"

Syntax

struct FLightSample

Remarks

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.

Variables

Name Description

Public variable

bool

 

bIsMapped

True if this sample maps to a valid point on a triangle.

Public variable

float[NUM_STORE...

 

Coefficients

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.

Constructors

Name Description

Public function

FLightSample()

Initialization constructor.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback