UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RayTracingLighting.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "ShaderParameters.h"
8#include "SceneRendering.h"
9#include "LightSceneInfo.h"
10#include "RayTracingDefinitions.h"
11#include "RayTracingTypes.h"
13
14#if RHI_RAYTRACING
15
17
18// This struct holds a light grid and list of raytracing lights for both building and rendering
31
33
34// Register this in the graph builder so we can easily move it around and access it from both the main rendering thread and RDG passes
36
39
41 FRDGBuilder& GraphBuilder,
42 const FScene* Scene,
43 const FSceneView& View,
44 FGlobalShaderMap* ShaderMap,
45 bool bBuildLightGrid);
46
48 FRHICommandList& RHICmdList,
49 const FScene* Scene,
51 const class FViewInfo& View);
52
54 FRHICommandList& RHICmdList,
55 const FScene* Scene,
57 const class FViewInfo& View);
58
59// Helper routines, useful when building a light grid
60FBox3f GetPointLightBounds(const FVector3f& Center, float Radius);
61FBox3f GetSpotLightBounds(const FVector3f& Center, const FVector3f& Normal, float Radius, float CosOuter);
62FBox3f GetRectLightBounds(const FVector3f& Center, const FVector3f& Normal, const FVector3f& Tangent, float HalfWidth, float HalfHeight, float Radius, float BarnCos, float BarnLen);
63
64#endif
@ Normal
Definition AndroidInputInterface.h:116
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
#define RDG_REGISTER_BLACKBOARD_STRUCT(StructType)
Definition RenderGraphBlackboard.h:15
#define SHADER_PARAMETER_RDG_BUFFER_SRV(ShaderType, MemberName)
Definition ShaderParameterMacros.h:1800
#define SHADER_PARAMETER_RDG_TEXTURE(ShaderType, MemberName)
Definition ShaderParameterMacros.h:1752
#define END_GLOBAL_SHADER_PARAMETER_STRUCT
Definition ShaderParameterMacros.h:1669
#define BEGIN_GLOBAL_SHADER_PARAMETER_STRUCT
Definition ShaderParameterMacros.h:1663
#define SHADER_PARAMETER(MemberType, MemberName)
Definition ShaderParameterMacros.h:1684
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition GlobalShader.h:173
Definition LightSceneInfo.h:208
Definition RenderGraphBuilder.h:49
Definition RHICommandList.h:3819
Definition RHIResources.h:984
Definition SceneView.h:1425
Definition ScenePrivate.h:2875
Definition SceneRendering.h:1132
Definition UnrealString.h.inl:34
Definition RenderGraphResources.h:251
Definition SceneComponent.h:24
Definition ShowFlags.h:56