Navigation
API > API/Runtime > API/Runtime/Engine
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
| Name | FLightRenderParameters |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/SceneManagement.h |
| Include Path | #include "SceneManagement.h" |
Syntax
struct FLightRenderParameters
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAffectsTranslucentLighting | uint32 | Wether this lights affect translucent materials or not. | SceneManagement.h | |
| Color | FLinearColor | Color of the light. | SceneManagement.h | |
| DiffuseScale | float | Factor to applies on the diffuse. | SceneManagement.h | |
| Direction | FVector3f | Direction of the light if applies. | SceneManagement.h | |
| FalloffExponent | float | The exponent for the falloff of the light intensity from the distance. | SceneManagement.h | |
| IESAtlasIndex | float | IES atlas slice index. | SceneManagement.h | |
| InverseExposureBlend | float | SceneManagement.h | ||
| InvRadius | float | 1 / light's falloff radius from Position. | SceneManagement.h | |
| LightFunctionAtlasLightIndex | uint32 | Index of the light in the Light function atlas data. | SceneManagement.h | |
| RectLightAtlasMaxLevel | float | SceneManagement.h | ||
| RectLightAtlasUVOffset | FVector2f | Rect. light atlas transformation. | SceneManagement.h | |
| RectLightAtlasUVScale | FVector2f | SceneManagement.h | ||
| RectLightBarnCosAngle | float | Barn door angle for rect light. | SceneManagement.h | |
| RectLightBarnLength | float | Barn door length for rect light. | SceneManagement.h | |
| SoftSourceRadius | float | Radius of the soft source. | SceneManagement.h | |
| SourceLength | float | Other dimensions of the light source for rect light specifically. | SceneManagement.h | |
| SourceRadius | float | Radius of the point light. | SceneManagement.h | |
| SpecularScale | float | Factor to applies on the specular. | SceneManagement.h | |
| SpotAngles | FVector2f | Dimensions of the light, for spot light, but also. | SceneManagement.h | |
| Tangent | FVector3f | One tangent of the light if applies. | SceneManagement.h | |
| WorldPosition | FVector | Position of the light in world space. | SceneManagement.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float GetLightExposureScale
(
float Exposure |
SceneManagement.h | ||
void MakeShaderParameters
(
const FViewMatrices& ViewMatrices, |
SceneManagement.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float GetLightExposureScale
(
float Exposure, |
SceneManagement.h | ||
static float GetRectLightAtlasInvalidMIPLevel() |
Return Invalid rect light atlas MIP level. | SceneManagement.h |