Skip to content

Commit

Permalink
fix average blend mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi committed Dec 11, 2024
1 parent 06611b5 commit 3e519ec
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ function vtkStreamingOpenGLTexture(publicAPI, model) {
);
};

const superUpdate = publicAPI.updateVolumeInfoForGL;

publicAPI.updateVolumeInfoForGL = (dataType, numComps) => {
const isScalingApplied = superUpdate(dataType, numComps);
model.volumeInfo.dataComputedScale = [1];
model.volumeInfo.dataComputedOffset = [0];
return isScalingApplied;
};

/**
* This function updates the GPU texture memory to match the current
* representation of data held in RAM.
Expand Down

0 comments on commit 3e519ec

Please sign in to comment.