Skip to content

Commit

Permalink
Giving additive blend a constant and a setter
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeFuller committed May 25, 2021
1 parent 0a72271 commit 6bca29b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Rendering/Core/VolumeMapper/Constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export const BlendMode = {
MAXIMUM_INTENSITY_BLEND: 1,
MINIMUM_INTENSITY_BLEND: 2,
AVERAGE_INTENSITY_BLEND: 3,
ADDITIVE_INTENSITY_BLEND: 4,
};

export default {
Expand Down
4 changes: 4 additions & 0 deletions Sources/Rendering/Core/VolumeMapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ function vtkVolumeMapper(publicAPI, model) {
publicAPI.setBlendMode(BlendMode.AVERAGE_INTENSITY_BLEND);
};

publicAPI.setBlendModeToAdditiveIntensity = () => {
publicAPI.setBlendMode(BlendMode.ADDITIVE_INTENSITY_BLEND);
};

publicAPI.getBlendModeAsString = () =>
macro.enumToString(BlendMode, model.blendMode);
}
Expand Down

0 comments on commit 6bca29b

Please sign in to comment.