UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LightShaftRendering.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5
6#include "Math/Color.h"
7#include "Math/Vector2D.h"
8
9class FViewInfo;
10class FLightSceneInfo;
13
21
22// Returns mobile light shaft info for the light.
23extern FMobileLightShaftInfo GetMobileLightShaftInfo(const FViewInfo& View, const FLightSceneInfo& LightSceneInfo);
24
25// Returns whether light shafts globally are enabled.
26extern bool ShouldRenderLightShafts(const FSceneViewFamily& ViewFamily);
27
28// Returns whether the light proxy is eligible for light shaft rendering. Assumes light shafts are enabled.
30
31// Returns the current downsample factor for the light shaft render target.
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
FMobileLightShaftInfo GetMobileLightShaftInfo(const FViewInfo &View, const FLightSceneInfo &LightSceneInfo)
Definition LightShaftRendering.cpp:81
int32 GetLightShaftDownsampleFactor()
Definition LightShaftRendering.cpp:71
bool ShouldRenderLightShaftsForLight(const FViewInfo &View, const FLightSceneProxy &LightSceneProxy)
Definition LightShaftRendering.cpp:120
bool ShouldRenderLightShafts(const FSceneViewFamily &ViewFamily)
Definition LightShaftRendering.cpp:108
Definition LightSceneInfo.h:208
Definition LightSceneProxy.h:43
Definition SceneView.h:2212
Definition SceneRendering.h:1132
Definition Color.h:48
static CORE_API const FLinearColor Transparent
Definition Color.h:459
Definition LightShaftRendering.h:15
float BloomMaxBrightness
Definition LightShaftRendering.h:19
FLinearColor ColorMask
Definition LightShaftRendering.h:17
FLinearColor ColorApply
Definition LightShaftRendering.h:18
FVector2D Center
Definition LightShaftRendering.h:16
static CORE_API const TVector2< double > ZeroVector
Definition Vector2D.h:63