Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
iaomw committed Nov 25, 2024
1 parent e5d17b7 commit 8125a53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions zeno/src/nodes/ProcedrualSkyNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) );
}
};

Expand All @@ -130,6 +131,7 @@ ZENDEFNODE(DistantLight, {
{"float", "intensity", "1"}
},
{
{"vec3f", "dir"},
{"out"},
},
{
Expand Down
4 changes: 2 additions & 2 deletions zenovis/xinxinoptix/volume.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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

Expand Down

0 comments on commit 8125a53

Please sign in to comment.