Skip to content

Commit

Permalink
fix(ImageOutline): allow zero outline by hiding it
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi authored and finetjul committed Apr 11, 2024
1 parent b136dd7 commit 8084cd4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions Sources/Rendering/OpenGL/ImageMapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,6 @@ function vtkOpenGLImageMapper(publicAPI, model) {
return;
}
if (actualThickness == 0) {
gl_FragData[0] = vec4(0.0, 0.0, 1.0, 1.0);
return;
}
for (int i = -actualThickness; i <= actualThickness; i++) {
for (int j = -actualThickness; j <= actualThickness; j++) {
if (i == 0 || j == 0) {
Expand Down
3 changes: 0 additions & 3 deletions Sources/Rendering/OpenGL/glsl/vtkVolumeFS.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -1039,9 +1039,6 @@ vec4 getColorForValue(vec4 tValue, vec3 posIS, vec3 tstep)

int actualThickness = int(textureValue * 255.0);

if (actualThickness == 0) {
return vec4(0, 0, 1, 1);
}

// If it is the background (segment index 0), we should quickly bail out.
// Previously, this was determined by tColor.a, which was incorrect as it
Expand Down

0 comments on commit 8084cd4

Please sign in to comment.