Skip to content

Commit

Permalink
Merge branch 'master' into OptixUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
teachmain committed Oct 16, 2024
2 parents 338e771 + 2b498fa commit 42fccd3
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 @@ -1007,7 +1007,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 42fccd3

Please sign in to comment.