Skip to content

Code error about TraceRay in 14-Shaders.hlsl row113 #15

@LouiValley

Description

@LouiValley

14-Shaders.hlsl
#113 row
TraceRay(gRtScene, 0 /rayFlags/, 0xFF, 1 /* ray index*/, 0, 1, ray, shadowPayload);
---------------------------------------------------------------------------------------->
TraceRay(gRtScene, 0 /rayFlags/, 0xFF, 1 /* ray index*/, 2, 1, ray, shadowPayload);

I thine the muiltiplier for Geometry ContributionToHitGroupIndex may be 2, not 0.
Or it cannot fit with Shader Table Entry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions