FRayTracingPipelineStateInitializer::SetMissShaderTable

Shaders that will be invoked if a ray misses all geometry.

Windows
MacOS
Linux

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/RHIResources.h

Include

#include "RHIResources.h"

Syntax

void SetMissShaderTable
(
    const TArrayView< FRHIRayTracingShader * > & InMissShaders,
    uint64 Hash
)

Remarks

Shaders that will be invoked if a ray misses all geometry. If this table is empty, then a built-in default miss shader will be used that sets HitT member of FMinimalPayload to -1. Desired miss shader can be selected by providing MissShaderIndex to TraceRay() function.

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