-
-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple images as input Uniform styling of fragment shader Fix resource sharing core object for volume mapper scalars Many shader bugs are fixed, often linked to wrong coordinate system. Fix normal computation in shader. BREAKING CHANGE: the volume mapper fragment shader is very different. This can cause shader replacements to break. refactor: Use the right matrices in volume FS shader
- Loading branch information
Showing
17 changed files
with
2,440 additions
and
2,666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
// Don't use the constants from this file | ||
export declare enum BlendMode { | ||
COMPOSITE_BLEND = 0, | ||
MAXIMUM_INTENSITY_BLEND = 1, | ||
MINIMUM_INTENSITY_BLEND = 2, | ||
AVERAGE_INTENSITY_BLEND = 3, | ||
ADDITIVE_INTENSITY_BLEND = 4, | ||
RADON_TRANSFORM_BLEND = 5, | ||
LABELMAP_EDGE_PROJECTION_BLEND = 6, | ||
} | ||
|
||
// Prefer constants from volume property: | ||
export { | ||
default, | ||
BlendMode, | ||
FilterMode, | ||
} from '../VolumeProperty/Constants'; | ||
declare const _default: { | ||
BlendMode: typeof BlendMode; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
// Don't use the constants from this file | ||
|
||
// Prefer constants from volume property: | ||
import Constants, { | ||
BlendMode as OriginalBlendMode, | ||
FilterMode as OriginalFilterMode, | ||
} from 'vtk.js/Sources/Rendering/Core/VolumeProperty/Constants'; | ||
|
||
export const BlendMode = OriginalBlendMode; | ||
|
||
export const FilterMode = OriginalFilterMode; | ||
|
||
export default Constants; | ||
export const BlendMode = { | ||
COMPOSITE_BLEND: 0, | ||
MAXIMUM_INTENSITY_BLEND: 1, | ||
MINIMUM_INTENSITY_BLEND: 2, | ||
AVERAGE_INTENSITY_BLEND: 3, | ||
ADDITIVE_INTENSITY_BLEND: 4, | ||
RADON_TRANSFORM_BLEND: 5, | ||
LABELMAP_EDGE_PROJECTION_BLEND: 6, | ||
}; | ||
|
||
export default { BlendMode }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.