Skip to content

Commit 1a63d26

Browse files
committed
fix volumes disappearing when in front of geometry in default renderer
1 parent c0793b3 commit 1a63d26

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

devices/rtx/renderer/DirectLight_ptx.cu

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,6 @@ VISRTX_GLOBAL void __raygen__()
374374
if (glm::any(glm::isnan(vec3(shadingResult)))) {
375375
color = vec3(0.f);
376376
opacity = 0.f;
377-
} else {
378-
color = vec3(shadingResult);
379-
opacity = shadingResult.w;
380377
}
381378
accumulateValue(color, vec3(shadingResult), opacity);
382379
accumulateValue(opacity, shadingResult.w, opacity);

0 commit comments

Comments
 (0)