Skip to content

Commit

Permalink
* Fixed raygen shader to use proper ray flags for shadow rays tracing…
Browse files Browse the repository at this point in the history
… (terminate on first hit, no need to get the closest one)
  • Loading branch information
iOrange committed Nov 15, 2018
1 parent 8cbfbc5 commit c4b5c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shaders/ray_gen.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void main() {
const vec3 shadowRayOrigin = hitPos + hitNormal * 0.001f;

traceNVX(Scene,
rayFlags,
shadowRayFlags,
cullMask,
SWS_SHADOW_HIT_SHADERS_IDX,
stbRecordStride,
Expand Down

0 comments on commit c4b5c93

Please sign in to comment.