Skip to content

Commit 6f34aa5

Browse files
committed
fix: Address incorrect opacity values when displaying RGB images in ImageMapper
1 parent 4794944 commit 6f34aa5

File tree

1 file changed

+1
-1
lines changed
  • Sources/Rendering/OpenGL/ImageMapper

1 file changed

+1
-1
lines changed

Sources/Rendering/OpenGL/ImageMapper/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ function vtkOpenGLImageMapper(publicAPI, model) {
303303
'vec4 tcolor = cscale0*texture2D(texture1, tcoordVCVSOutput.st) + cshift0;',
304304
'gl_FragData[0] = vec4(texture2D(colorTexture1, vec2(tcolor.r,0.5)).r,',
305305
' texture2D(colorTexture1, vec2(tcolor.g,0.5)).r,',
306-
' texture2D(colorTexture1, vec2(tcolor.b,0.5)).r, tcolor.a);',
306+
' texture2D(colorTexture1, vec2(tcolor.b,0.5)).r, opacity);',
307307
]
308308
).result;
309309
}

0 commit comments

Comments
 (0)