Skip to content

Commit

Permalink
fix(ImageMapper): use norm16 ext
Browse files Browse the repository at this point in the history
This keeps the ImageMapper in-line with the VolumeMapper.
  • Loading branch information
floryst committed Sep 13, 2023
1 parent fa38fd5 commit 87eaed7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Rendering/OpenGL/ImageMapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,10 @@ function vtkOpenGLImageMapper(publicAPI, model) {
if (model.VBOBuildString !== toString) {
// Build the VBOs
const dims = image.getDimensions();
// Use norm16 for scalar texture if the extension is available
model.openGLTexture.setOglNorm16Ext(
model.context.getExtension('EXT_texture_norm16')
);
if (iType === InterpolationType.NEAREST) {
if (
new Set([1, 3, 4]).has(numComp) &&
Expand Down

0 comments on commit 87eaed7

Please sign in to comment.