diff --git a/zenovis/xinxinoptix/DeflMatShader.cu b/zenovis/xinxinoptix/DeflMatShader.cu index 0e3ae2dc6..f022a5864 100644 --- a/zenovis/xinxinoptix/DeflMatShader.cu +++ b/zenovis/xinxinoptix/DeflMatShader.cu @@ -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);