From 2b498fa51962ba85e88d2fed79ead6090b698ece Mon Sep 17 00:00:00 2001 From: teachmain Date: Fri, 19 Apr 2024 18:59:11 +0800 Subject: [PATCH] fix inner reflection --- zenovis/xinxinoptix/DeflMatShader.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zenovis/xinxinoptix/DeflMatShader.cu b/zenovis/xinxinoptix/DeflMatShader.cu index 0e3ae2dc6f..f022a5864f 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);