UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
HairStrandsUtils.h File Reference
#include "CoreMinimal.h"
#include "RendererInterface.h"
#include "HairStrandsInterface.h"
#include "SceneTypes.h"
#include "HairStrandsData.h"

Go to the source code of this file.

Classes

struct  FHairComponent
 

Enumerations

enum class  EHairStrandsCompositionType : uint8 { BeforeTranslucent , AfterTranslucent , AfterSeparateTranslucent , AfterTranslucentBeforeTranslucentAfterDOF }
 

Functions

FMinHairRadiusAtDepth1 ComputeMinStrandRadiusAtDepth1 (const FIntPoint &Resolution, const float FOV, const uint32 SampleCount, const float OverrideStrandHairRasterizationScale, const float OrthoWidth=0.0f)
 
FIntRect ComputeProjectedScreenRect (const FBox &B, const FViewInfo &View)
 
void ComputeTranslatedWorldToLightClip (const FVector &TranslatedWorldOffset, FMatrix &OutTranslatedWorldToClipTransform, FMinHairRadiusAtDepth1 &OutMinStrandRadiusAtDepth1, const FBoxSphereBounds &PrimitivesBounds, const class FLightSceneProxy &LightProxy, const ELightComponentType LightType, const FIntPoint &ShadowResolution)
 
FHairComponent GetHairComponents ()
 
uint32 ToBitfield (const FHairComponent &Component)
 
float GetHairDualScatteringRoughnessOverride ()
 
float SampleCountToSubPixelSize (uint32 SamplePerPixelCount)
 
FIntRect ComputeVisibleHairStrandsMacroGroupsRect (const FViewInfo &View, const FIntRect &ViewRect, const FHairStrandsMacroGroupDatas &Datas)
 
bool IsHairStrandsViewRectOptimEnable ()
 
uint32 GetVendorOptimalGroupSize1D ()
 
FIntPoint GetVendorOptimalGroupSize2D ()
 
EHairStrandsCompositionType GetHairStrandsComposition ()
 
FVector4f PackHairRenderInfo (float PrimaryRadiusAtDepth1, float StableRadiusAtDepth1, float VelocityRadiusAtDepth1, float VelocityScale)
 
uint32 PackHairRenderInfoBits (bool bIsOrtho, bool bIsGPUDriven)
 

Enumeration Type Documentation

◆ EHairStrandsCompositionType

Enumerator
BeforeTranslucent 
AfterTranslucent 
AfterSeparateTranslucent 
AfterTranslucentBeforeTranslucentAfterDOF 

Function Documentation

◆ ComputeMinStrandRadiusAtDepth1()

FMinHairRadiusAtDepth1 ComputeMinStrandRadiusAtDepth1 ( const FIntPoint Resolution,
const float  FOV,
const uint32  SampleCount,
const float  OverrideStrandHairRasterizationScale,
const float  OrthoWidth = 0.0f 
)

◆ ComputeProjectedScreenRect()

FIntRect ComputeProjectedScreenRect ( const FBox B,
const FViewInfo View 
)

◆ ComputeTranslatedWorldToLightClip()

void ComputeTranslatedWorldToLightClip ( const FVector TranslatedWorldOffset,
FMatrix OutTranslatedWorldToClipTransform,
FMinHairRadiusAtDepth1 OutMinStrandRadiusAtDepth1,
const FBoxSphereBounds PrimitivesBounds,
const class FLightSceneProxy LightProxy,
const ELightComponentType  LightType,
const FIntPoint ShadowResolution 
)

◆ ComputeVisibleHairStrandsMacroGroupsRect()

FIntRect ComputeVisibleHairStrandsMacroGroupsRect ( const FViewInfo View,
const FIntRect ViewRect,
const FHairStrandsMacroGroupDatas Datas 
)

◆ GetHairComponents()

FHairComponent GetHairComponents ( )

◆ GetHairDualScatteringRoughnessOverride()

float GetHairDualScatteringRoughnessOverride ( )

◆ GetHairStrandsComposition()

EHairStrandsCompositionType GetHairStrandsComposition ( )

◆ GetVendorOptimalGroupSize1D()

uint32 GetVendorOptimalGroupSize1D ( )

◆ GetVendorOptimalGroupSize2D()

FIntPoint GetVendorOptimalGroupSize2D ( )

◆ IsHairStrandsViewRectOptimEnable()

bool IsHairStrandsViewRectOptimEnable ( )

◆ PackHairRenderInfo()

FVector4f PackHairRenderInfo ( float  PrimaryRadiusAtDepth1,
float  StableRadiusAtDepth1,
float  VelocityRadiusAtDepth1,
float  VelocityScale 
)

◆ PackHairRenderInfoBits()

uint32 PackHairRenderInfoBits ( bool  bIsOrtho,
bool  bIsGPUDriven 
)

◆ SampleCountToSubPixelSize()

float SampleCountToSubPixelSize ( uint32  SamplePerPixelCount)

◆ ToBitfield()

uint32 ToBitfield ( const FHairComponent Component)