UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
HairStrandsLUT.cpp File Reference
#include "HairStrandsLUT.h"
#include "HairStrandsUtils.h"
#include "Shader.h"
#include "GlobalShader.h"
#include "ShaderParameters.h"
#include "ShaderParameterStruct.h"
#include "RenderGraphUtils.h"
#include "SceneRendering.h"
#include "SystemTextures.h"
#include "DataDrivenShaderPlatformInfo.h"

Classes

class  FHairLUTCS
 
struct  FHairCountToCoverageData
 
class  FHairCoverageLUTCS
 

Functions

 IMPLEMENT_GLOBAL_SHADER (FHairLUTCS, "/Engine/Private/HairStrands/HairStrandsLUT.usf", "MainCS", SF_Compute)
 
float GetHairCoverage (uint32 InCount, float InAvgRadius)
 Return the hair coverage for a certain hair count and normalized avg hair radius (i.e, [0..1])
 
float GetHairAvgRadius (uint32 InCount, float InCoverage)
 Return the average hair normalized radius for a given hair count and a given coverage value.
 
 IMPLEMENT_GLOBAL_SHADER (FHairCoverageLUTCS, "/Engine/Private/HairStrands/HairStrandsLUT.usf", "MainCS", SF_Compute)
 
FRDGTextureRef GetHairLUT (FRDGBuilder &GraphBuilder, const FViewInfo &View, FHairLUTType Type)
 Returns Hair LUTs. LUTs are generated on demand.
 
void UpdateHairResources (FRDGBuilder &GraphBuilder, const FViewInfo &View)
 

Function Documentation

◆ GetHairAvgRadius()

float GetHairAvgRadius ( uint32  InCount,
float  InCoverage 
)

Return the average hair normalized radius for a given hair count and a given coverage value.

◆ GetHairCoverage()

float GetHairCoverage ( uint32  InCount,
float  InAvgRadius 
)

Return the hair coverage for a certain hair count and normalized avg hair radius (i.e, [0..1])

◆ GetHairLUT()

FRDGTextureRef GetHairLUT ( FRDGBuilder GraphBuilder,
const FViewInfo View,
FHairLUTType  Type 
)

Returns Hair LUTs. LUTs are generated on demand.

◆ IMPLEMENT_GLOBAL_SHADER() [1/2]

IMPLEMENT_GLOBAL_SHADER ( FHairCoverageLUTCS  ,
"/Engine/Private/HairStrands/HairStrandsLUT.usf"  ,
"MainCS"  ,
SF_Compute   
)

◆ IMPLEMENT_GLOBAL_SHADER() [2/2]

IMPLEMENT_GLOBAL_SHADER ( FHairLUTCS  ,
"/Engine/Private/HairStrands/HairStrandsLUT.usf"  ,
"MainCS"  ,
SF_Compute   
)

◆ UpdateHairResources()

void UpdateHairResources ( FRDGBuilder GraphBuilder,
const FViewInfo View 
)