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

Classes

class  FDeepShadowDepthMeshVS
 
class  FDeepShadowDomMeshVS
 
class  FDeepShadowDepthMeshPS
 
class  FDeepShadowDomMeshPS
 
class  FHairRasterMeshProcessor
 

Functions

 IMPLEMENT_STATIC_UNIFORM_BUFFER_STRUCT (FHairDeepShadowRasterUniformParameters, "DeepRasterPass", SceneTextures)
 
 IMPLEMENT_MATERIAL_SHADER_TYPE (, FDeepShadowDepthMeshVS, TEXT("/Engine/Private/HairStrands/HairStrandsDeepShadowVS.usf"), TEXT("Main"), SF_Vertex)
 
 IMPLEMENT_MATERIAL_SHADER_TYPE (, FDeepShadowDomMeshVS, TEXT("/Engine/Private/HairStrands/HairStrandsDeepShadowVS.usf"), TEXT("Main"), SF_Vertex)
 
 IMPLEMENT_MATERIAL_SHADER_TYPE (, FDeepShadowDepthMeshPS, TEXT("/Engine/Private/HairStrands/HairStrandsDeepShadowPS.usf"), TEXT("MainDepth"), SF_Pixel)
 
 IMPLEMENT_MATERIAL_SHADER_TYPE (, FDeepShadowDomMeshPS, TEXT("/Engine/Private/HairStrands/HairStrandsDeepShadowPS.usf"), TEXT("MainDom"), SF_Pixel)
 
template<typename TPassParameter >
void AddHairStrandsRasterPass (FRDGBuilder &GraphBuilder, const FScene *Scene, const FViewInfo *ViewInfo, const FHairStrandsMacroGroupData::TPrimitiveInfos &PrimitiveSceneInfos, const EHairStrandsRasterPassType RasterPassType, const FIntRect &ViewportRect, const FVector4f &HairRenderInfo, const uint32 HairRenderInfoBits, const FVector3f &RasterDirection, TPassParameter *PassParameters, FInstanceCullingManager &InstanceCullingManager)
 
void AddHairDeepShadowRasterPass (FRDGBuilder &GraphBuilder, const FScene *Scene, const FViewInfo *ViewInfo, const FHairStrandsMacroGroupData::TPrimitiveInfos &PrimitiveSceneInfos, const EHairStrandsRasterPassType PassType, const FIntPoint &AtlasResolution, const FVector4f &HairRenderInfo, const uint32 HairRenderInfoBits, const FVector3f &LightDirection, FHairDeepShadowRasterPassParameters *PassParameters, FInstanceCullingManager &InstanceCullingManager)
 

Function Documentation

◆ AddHairDeepShadowRasterPass()

void AddHairDeepShadowRasterPass ( FRDGBuilder GraphBuilder,
const FScene Scene,
const FViewInfo ViewInfo,
const FHairStrandsMacroGroupData::TPrimitiveInfos PrimitiveSceneInfos,
const EHairStrandsRasterPassType  PassType,
const FIntPoint AtlasResolution,
const FVector4f HairRenderInfo,
const uint32  HairRenderInfoBits,
const FVector3f LightDirection,
FHairDeepShadowRasterPassParameters PassParameters,
FInstanceCullingManager InstanceCullingManager 
)

◆ AddHairStrandsRasterPass()

void AddHairStrandsRasterPass ( FRDGBuilder GraphBuilder,
const FScene Scene,
const FViewInfo ViewInfo,
const FHairStrandsMacroGroupData::TPrimitiveInfos PrimitiveSceneInfos,
const EHairStrandsRasterPassType  RasterPassType,
const FIntRect ViewportRect,
const FVector4f HairRenderInfo,
const uint32  HairRenderInfoBits,
const FVector3f RasterDirection,
TPassParameter PassParameters,
FInstanceCullingManager InstanceCullingManager 
)

◆ IMPLEMENT_MATERIAL_SHADER_TYPE() [1/4]

IMPLEMENT_MATERIAL_SHADER_TYPE ( FDeepShadowDepthMeshPS  ,
TEXT("/Engine/Private/HairStrands/HairStrandsDeepShadowPS.usf" ,
TEXT("MainDepth")  ,
SF_Pixel   
)

◆ IMPLEMENT_MATERIAL_SHADER_TYPE() [2/4]

IMPLEMENT_MATERIAL_SHADER_TYPE ( FDeepShadowDepthMeshVS  ,
TEXT("/Engine/Private/HairStrands/HairStrandsDeepShadowVS.usf" ,
TEXT("Main")  ,
SF_Vertex   
)

◆ IMPLEMENT_MATERIAL_SHADER_TYPE() [3/4]

IMPLEMENT_MATERIAL_SHADER_TYPE ( FDeepShadowDomMeshPS  ,
TEXT("/Engine/Private/HairStrands/HairStrandsDeepShadowPS.usf" ,
TEXT("MainDom")  ,
SF_Pixel   
)

◆ IMPLEMENT_MATERIAL_SHADER_TYPE() [4/4]

IMPLEMENT_MATERIAL_SHADER_TYPE ( FDeepShadowDomMeshVS  ,
TEXT("/Engine/Private/HairStrands/HairStrandsDeepShadowVS.usf" ,
TEXT("Main")  ,
SF_Vertex   
)

◆ IMPLEMENT_STATIC_UNIFORM_BUFFER_STRUCT()

IMPLEMENT_STATIC_UNIFORM_BUFFER_STRUCT ( FHairDeepShadowRasterUniformParameters  ,
"DeepRasterPass"  ,
SceneTextures   
)