Commit 3e49c8fc authored by Sankhesh Jhaveri's avatar Sankhesh Jhaveri

Shading done for composite blends only in volume rendering

parent d654b034
......@@ -575,11 +575,10 @@ namespace vtkvolume
\n vec4 finalColor = vec4(0.0);"
);
// Shading for composite blending only
int shadeReqd = volProperty->GetShade() &&
(mapper->GetBlendMode() !=
vtkVolumeMapper::MAXIMUM_INTENSITY_BLEND) &&
(mapper->GetBlendMode() !=
vtkVolumeMapper::MINIMUM_INTENSITY_BLEND);
(mapper->GetBlendMode() ==
vtkVolumeMapper::COMPOSITE_BLEND);
if (shadeReqd || volProperty->HasGradientOpacity())
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment