Skip to content
Snippets Groups Projects
Commit 66cd7a02 authored by Aashish Chaudhary's avatar Aashish Chaudhary
Browse files

Wrapped long lines

parent 6d4ab070
No related branches found
No related tags found
No related merge requests found
......@@ -1105,24 +1105,25 @@ namespace vtkvolume
}
shaderStr += std::string("\
\n // Opacity calculation using compositing:\
\n // here we use front to back compositing scheme whereby the current\
\n // sample value is multiplied to the currently accumulated alpha\
\n // and then this product is subtracted from the sample value to\
\n // get the alpha from the previous steps.\
\n // Next, this alpha is multiplied with the current sample colour\
\n // and accumulated to the composited colour. The alpha value from\
\n // the previous steps is then accumulated to the composited colour\
\n // alpha.\
\n g_srcColor.rgb *= g_srcColor.a;\
\n g_fragColor = (1.0f - g_fragColor.a) * g_srcColor + g_fragColor;"
\n // Opacity calculation using compositing:\
\n // Here we use front to back compositing scheme whereby\
\n // the current sample value is multiplied to the\
\n // currently accumulated alpha and then this product\
\n // is subtracted from the sample value to get the\
\n // alpha from the previous steps. Next, this alpha is\
\n // multiplied with the current sample colour\
\n // and accumulated to the composited colour. The alpha\
\n // value from\ the previous steps is then accumulated\
\n // to the composited colour alpha.\
\n g_srcColor.rgb *= g_srcColor.a;\
\n g_fragColor = (1.0f - g_fragColor.a) * g_srcColor + g_fragColor;"
);
if (!mask || !maskInput ||
maskType != vtkGPUVolumeRayCastMapper::LabelMapMaskType)
{
shaderStr += std::string("\
\n }"
\n }"
);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment