Skip to content

Commit

Permalink
fix shader issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mlavik1 committed Nov 6, 2024
1 parent 0d45b4f commit 9f1df53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Shaders/DirectVolumeRenderingShader.shader
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@
float4 src = getTF1DColour(density);
if (src.a == 0.0)
continue;
#endif

#if defined(MULTIVOLUME_OVERLAY) || defined(MULTIVOLUME_ISOLATE)
const float secondaryDensity = getSecondaryDensity(currPos);
Expand All @@ -349,6 +348,7 @@
#elif MULTIVOLUME_ISOLATE
src.a = secondaryColour.a > 0.0 ? src.a : 0.0;
#endif
#endif
#endif

// Calculate gradient (needed for lighting and 2D transfer functions)
Expand Down

0 comments on commit 9f1df53

Please sign in to comment.