Skip to content

Commit 213f4d9

Browse files
committedFeb 18, 2025·
fix incorrect opacity accumulation in volumes
1 parent 0047ed8 commit 213f4d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎devices/rtx/gpu/volumeIntegration.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ VISRTX_DEVICE void _rayMarchVolume(ScreenSample &ss,
9393

9494
if (color)
9595
*color += transmittance * (1.f - stepTransmittance) * vec3(co);
96-
opacity += transmittance * (1.f - stepTransmittance) * co.w;
96+
opacity += transmittance * (1.f - stepTransmittance);
9797

9898
transmittance *= stepTransmittance;
9999
}

0 commit comments

Comments
 (0)
Please sign in to comment.