From 8125a536aff859fd13deea82581704384168e145 Mon Sep 17 00:00:00 2001 From: iaomw Date: Mon, 25 Nov 2024 17:44:41 +0800 Subject: [PATCH] Minor updates --- zeno/src/nodes/ProcedrualSkyNode.cpp | 2 ++ zenovis/xinxinoptix/volume.cu | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/zeno/src/nodes/ProcedrualSkyNode.cpp b/zeno/src/nodes/ProcedrualSkyNode.cpp index 265796de58..0748b734b1 100644 --- a/zeno/src/nodes/ProcedrualSkyNode.cpp +++ b/zeno/src/nodes/ProcedrualSkyNode.cpp @@ -119,6 +119,7 @@ struct DistantLight : INode { result->data.color = color; result->data.intensity = intensity; set_output2("out", std::move(result) ); + set_output2("dir", std::move(dir3) ); } }; @@ -130,6 +131,7 @@ ZENDEFNODE(DistantLight, { {"float", "intensity", "1"} }, { + {"vec3f", "dir"}, {"out"}, }, { diff --git a/zenovis/xinxinoptix/volume.cu b/zenovis/xinxinoptix/volume.cu index 7b2b3dcaec..0e8662b7ac 100644 --- a/zenovis/xinxinoptix/volume.cu +++ b/zenovis/xinxinoptix/volume.cu @@ -162,7 +162,7 @@ extern "C" __global__ void __closesthit__radiance_volume() testPRD.done = false; testPRD.seed = prd->seed; testPRD.depth == 0; - testPRD._tmin_ = 0; + testPRD._tmin_ = t0; testPRD.maxDistance = NextFloatUp(t1); testPRD.test_distance = true; @@ -189,7 +189,7 @@ extern "C" __global__ void __closesthit__radiance_volume() if (surface_inside) { // Hit other material prd->_mask_ = _mask_; - //prd->_tmin_ = NextFloatDown(t1); + prd->_tmin_ = NextFloatDown(t1); } else { // Volume edge