bAllowDuplicateAnyHitShaderInvocation

Any-hit shader may be invoked multiple times for the same primitive during ray traversal.

Windows
MacOS
Linux

Syntax

bool bAllowDuplicateAnyHitShaderInvocation

Remarks

Any-hit shader may be invoked multiple times for the same primitive during ray traversal. Setting this to `false_ guarantees that only a single instance of any-hit shader will run per primitive, at some performance cost.

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