UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ReflectionEnvironmentCapture.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 Functionality for capturing the scene into reflection capture cubemaps, and prefiltering
5=============================================================================*/
6
7#pragma once
8
9#include "CoreMinimal.h"
10#include "Math/SHMath.h"
11#include "RHI.h"
12#include "GlobalShader.h"
14
16
19
20inline uint32 GetNumMips(uint32 MipSize)
21{
22 return FMath::CeilLogTwo(MipSize) + 1;
23}
24
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ECubeFace
Definition RHIDefinitions.h:525
FMatrix GetCubeProjectionMatrix(float HalfFovDeg, float CubeMapSize, float NearPlane)
Definition ReflectionEnvironmentCapture.cpp:1237
FMatrix CalcCubeFaceViewRotationMatrix(ECubeFace Face)
Definition ReflectionEnvironmentCapture.cpp:1193
void ConvolveCubeMap(FRDGBuilder &GraphBuilder, FGlobalShaderMap *ShaderMap, uint32 CubeMipStart, uint32 CubeMipEnd, uint32 FaceStart, uint32 FaceCount, FRDGTexture *RDGSrcRenderTarget, FRDGTexture *RDGDstRenderTarget)
Definition ReflectionEnvironmentCapture.cpp:429
void ComputeDiffuseIrradiance(FRDGBuilder &GraphBuilder, FGlobalShaderMap *ShaderMap, FRDGTexture *LightingSource, FSHVectorRGB3 *OutIrradianceEnvironmentMap)
Definition ReflectionEnvironmentDiffuseIrradiance.cpp:88
uint32 GetNumMips(uint32 MipSize)
Definition ReflectionEnvironmentCapture.h:20
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition GlobalShader.h:173
Definition RenderGraphBuilder.h:49
Definition RenderGraphResources.h:571