UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
HairStrandsDeepShadow.cpp File Reference

Classes

class  FHairStrandsShadowDepthInjection
 
class  FHairStrandsShadowDepthInjectionVS
 
class  FHairStrandsShadowDepthInjectionPS
 
class  FDeepShadowCreateViewInfoCS
 

Typedefs

typedef TArray< const FLightSceneInfo *, SceneRenderingAllocatorFLightSceneInfos
 

Functions

 DECLARE_GPU_STAT (HairStrandsDeepShadow)
 
 DECLARE_GPU_STAT (HairStrandsDeepShadowFrontDepth)
 
 DECLARE_GPU_STAT (HairStrandsDeepShadowLayers)
 
 IMPLEMENT_GLOBAL_SHADER (FHairStrandsShadowDepthInjectionPS, "/Engine/Private/HairStrands/HairStrandsVoxelRasterCompute.usf", "MainPS", SF_Pixel)
 
 IMPLEMENT_GLOBAL_SHADER (FHairStrandsShadowDepthInjectionVS, "/Engine/Private/HairStrands/HairStrandsVoxelRasterCompute.usf", "MainVS", SF_Vertex)
 
void AddInjectHairVoxelShadowCaster (FRDGBuilder &GraphBuilder, const FViewInfo &View, const bool bClear, const FHairStrandsDeepShadowData &DomData, FHairStrandsVoxelResources &VoxelResources, FRDGBufferSRVRef DeepShadowViewInfoBufferSRV, FRDGTextureRef OutDepthTexture)
 
 IMPLEMENT_GLOBAL_SHADER (FDeepShadowCreateViewInfoCS, "/Engine/Private/HairStrands/HairStrandsDeepShadowAllocation.usf", "CreateViewInfo", SF_Compute)
 
bool IsHairStrandsForVoxelTransmittanceAndShadowEnable (EShaderPlatform ShaderPlatform)
 
float GetDeepShadowMaxFovAngle ()
 
float GetDeepShadowRasterizationScale ()
 
float GetDeepShadowAABBScale ()
 
FVector4f ComputeDeepShadowLayerDepths (float LayerDistribution)
 
void RenderHairStrandsDeepShadows (FRDGBuilder &GraphBuilder, const FScene *Scene, FViewInfo &View, FInstanceCullingManager &InstanceCullingManager)
 

Typedef Documentation

◆ FLightSceneInfos

Function Documentation

◆ AddInjectHairVoxelShadowCaster()

void AddInjectHairVoxelShadowCaster ( FRDGBuilder GraphBuilder,
const FViewInfo View,
const bool  bClear,
const FHairStrandsDeepShadowData DomData,
FHairStrandsVoxelResources VoxelResources,
FRDGBufferSRVRef  DeepShadowViewInfoBufferSRV,
FRDGTextureRef  OutDepthTexture 
)

◆ ComputeDeepShadowLayerDepths()

FVector4f ComputeDeepShadowLayerDepths ( float  LayerDistribution)

◆ DECLARE_GPU_STAT() [1/3]

DECLARE_GPU_STAT ( HairStrandsDeepShadow  )

◆ DECLARE_GPU_STAT() [2/3]

DECLARE_GPU_STAT ( HairStrandsDeepShadowFrontDepth  )

◆ DECLARE_GPU_STAT() [3/3]

DECLARE_GPU_STAT ( HairStrandsDeepShadowLayers  )

◆ GetDeepShadowAABBScale()

float GetDeepShadowAABBScale ( )

◆ GetDeepShadowMaxFovAngle()

float GetDeepShadowMaxFovAngle ( )

◆ GetDeepShadowRasterizationScale()

float GetDeepShadowRasterizationScale ( )

◆ IMPLEMENT_GLOBAL_SHADER() [1/3]

IMPLEMENT_GLOBAL_SHADER ( FDeepShadowCreateViewInfoCS  ,
"/Engine/Private/HairStrands/HairStrandsDeepShadowAllocation.usf"  ,
"CreateViewInfo"  ,
SF_Compute   
)

◆ IMPLEMENT_GLOBAL_SHADER() [2/3]

IMPLEMENT_GLOBAL_SHADER ( FHairStrandsShadowDepthInjectionPS  ,
"/Engine/Private/HairStrands/HairStrandsVoxelRasterCompute.usf"  ,
"MainPS"  ,
SF_Pixel   
)

◆ IMPLEMENT_GLOBAL_SHADER() [3/3]

IMPLEMENT_GLOBAL_SHADER ( FHairStrandsShadowDepthInjectionVS  ,
"/Engine/Private/HairStrands/HairStrandsVoxelRasterCompute.usf"  ,
"MainVS"  ,
SF_Vertex   
)

◆ IsHairStrandsForVoxelTransmittanceAndShadowEnable()

bool IsHairStrandsForVoxelTransmittanceAndShadowEnable ( EShaderPlatform  ShaderPlatform)

◆ RenderHairStrandsDeepShadows()

void RenderHairStrandsDeepShadows ( FRDGBuilder GraphBuilder,
const FScene Scene,
FViewInfo View,
FInstanceCullingManager InstanceCullingManager 
)