ResetHairStrandsInterpolation

Reset the interpolation data.

Windows
MacOS
Linux

References

Module

HairStrandsCore

Header

/Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Public/HairStrandsRendering.h

Include

#include "HairStrandsRendering.h"

Source

/Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Private/HairStrandsRendering.cpp

Syntax

void ResetHairStrandsInterpolation
(
    FRDGBuilder & GraphBuilder,
    FGlobalShaderMap * ShaderMap,
    struct FHairGroupInstance * Instance,
    int32 LODIndex
)

Remarks

Reset the interpolation data. This needs to be called prior to ComputeHairStrandsInterpolation and prior to the actual hair simulation in order to insure that: 1) when hair simulation is enabled, the first frame is correct 2) when hair simulation is enabled/disabled (i.e., toggle/change) we reset to deform buffer to rest state)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss