Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian
VTK
Commits
66cd7a02
Commit
66cd7a02
authored
9 years ago
by
Aashish Chaudhary
Browse files
Options
Downloads
Patches
Plain Diff
Wrapped long lines
parent
6d4ab070
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Rendering/VolumeOpenGL2/vtkVolumeShaderComposer.h
+13
-12
13 additions, 12 deletions
Rendering/VolumeOpenGL2/vtkVolumeShaderComposer.h
with
13 additions
and
12 deletions
Rendering/VolumeOpenGL2/vtkVolumeShaderComposer.h
+
13
−
12
View file @
66cd7a02
...
...
@@ -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
}"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment