Skip to content

Commit

Permalink
fix inner reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
teachmain authored and iaomw committed Oct 16, 2024
1 parent f66fe4b commit 2b498fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zenovis/xinxinoptix/DeflMatShader.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ extern "C" __global__ void __closesthit__radiance()

prd->direction = normalize(wi);

prd->origin = dot(prd->direction, prd->geometryNormal) < 0? backPos : frontPos;
prd->origin = dot(prd->direction, prd->geometryNormal) < 0.0f ? backPos : frontPos;

if (prd->medium != DisneyBSDF::vacuum) {
prd->_mask_ = (uint8_t)(EverythingMask ^ VolumeMatMask);
Expand Down

0 comments on commit 2b498fa

Please sign in to comment.