UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VolumetricFog.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 VolumetricFog.h
5=============================================================================*/
6
7#pragma once
8
9#include "RHIDefinitions.h"
10#include "SceneView.h"
11#include "SceneRendering.h"
12
14
15// Grid size for resource allocation to be independent of dynamic resolution
17// Grid size for the view rectangle within the allocated resource
19
22
24
26
28extern bool ShouldRenderVolumetricFog(const FScene* Scene, const FSceneViewFamily& ViewFamily);
30
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
FIntVector GetVolumetricFogResourceGridSize(const FViewInfo &View, int32 &OutVolumetricFogGridPixelSize)
Definition VolumetricFog.cpp:1236
bool ShouldRenderVolumetricFog(const FScene *Scene, const FSceneViewFamily &ViewFamily)
Definition VolumetricFog.cpp:1200
bool DoesPlatformSupportVolumetricFogVoxelization(const FStaticShaderPlatform Platform)
Definition VolumetricFog.cpp:1196
FVector2f GetVolumetricFogPrevUVMaxForTemporalBlend(const FVector2f &ViewRectSize, FIntVector VolumetricFogResourceGridSize, int32 VolumetricFogResourceGridPixelSize)
Definition VolumetricFog.cpp:1253
FVector2f GetVolumetricFogFroxelToScreenSVPosRatio(const FViewInfo &View)
Definition VolumetricFog.cpp:1260
bool LightNeedsSeparateInjectionIntoVolumetricFogForOpaqueShadow(const FViewInfo &View, const FLightSceneInfo *LightSceneInfo, const FVisibleLightInfo &VisibleLightInfo, const FScene &InScene)
Definition VolumetricFog.cpp:635
const FProjectedShadowInfo * GetShadowForInjectionIntoVolumetricFog(const FVisibleLightInfo &VisibleLightInfo)
Definition VolumetricFog.cpp:614
FIntVector GetVolumetricFogViewGridSize(const FViewInfo &View, int32 &OutVolumetricFogGridPixelSize)
Definition VolumetricFog.cpp:1241
FVector2f GetVolumetricFogUVMaxForSampling(const FVector2f &ViewRectSize, FIntVector VolumetricFogResourceGridSize, int32 VolumetricFogResourceGridPixelSize)
Definition VolumetricFog.cpp:1246
FRDGTextureDesc GetVolumetricFogRDGTextureDesc(const FIntVector &VolumetricFogResourceGridSize)
Definition VolumetricFog.cpp:1273
int32 GetVolumetricFogGridPixelSize()
Definition VolumetricFog.cpp:169
Definition LightSceneInfo.h:208
Definition ShadowRendering.h:279
Definition SceneView.h:2212
Definition ScenePrivate.h:2875
Definition SceneRendering.h:1132
Definition SceneRendering.h:211
Definition RenderGraphDefinitions.h:627
Definition AndroidStaticShaderPlatform.inl:18