Fix incorrect sbtRecordOffset

This has to be 1 for the shadow version of the any hit shader to be
used.

Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com>
This commit is contained in:
Konstantin Seurer 2022-07-29 20:16:51 +02:00
parent 7b96b9582c
commit c3aabfeb64

View file

@ -121,7 +121,7 @@ void main()
traceRayEXT(topLevelAS, // acceleration structure traceRayEXT(topLevelAS, // acceleration structure
flags, // rayFlags flags, // rayFlags
0xFF, // cullMask 0xFF, // cullMask
0, // sbtRecordOffset 1, // sbtRecordOffset
0, // sbtRecordStride 0, // sbtRecordStride
1, // missIndex 1, // missIndex
origin, // ray origin origin, // ray origin