UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LightFunctionRendering.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Math/MathFwd.h"
6
7class FViewInfo;
8struct FViewMatrices;
10
11// Computes a matrix to transform float4(SvPosition.xyz,1) directly to coordinate system of the given light
13
14FVector3f GetCamRelativeLightPosition(const FViewMatrices& ViewMatrices, const FLightSceneInfo& LightSceneInfo);
15
16// Returns a fade fraction for a light function and a given view based on the appropriate fade settings.
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
void LightFunctionSvPositionToLightTransform(FMatrix44f &OutMatrix, const FViewInfo &View, const FLightSceneInfo &LightSceneInfo)
Definition LightFunctionRendering.cpp:83
FVector3f GetCamRelativeLightPosition(const FViewMatrices &ViewMatrices, const FLightSceneInfo &LightSceneInfo)
Definition LightFunctionRendering.cpp:112
float GetLightFunctionFadeFraction(const FViewInfo &View, FSphere LightBounds)
Definition LightFunctionRendering.cpp:207
Definition LightSceneInfo.h:208
Definition SceneRendering.h:1132
Definition SceneView.h:317