-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colors for mappings #2965
Merged
Merged
Colors for mappings #2965
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
dbfbaad
make it possible to specify custom colors for mappings (#2173)
daniel-wer bcfc991
fix shader code when mappings are not supported, add test (#2173)
daniel-wer 5c7142d
Merge branch 'master' of github.com:scalableminds/webknossos into col…
daniel-wer a17979c
remove volume tracing assertion from getVolumeTracingLayerName api fu…
daniel-wer 3119d77
fix flow, linter
daniel-wer 6651975
Merge branch 'master' of github.com:scalableminds/webknossos into col…
daniel-wer 23ba04e
improve usability of colors for mappings, first color specifies the c…
daniel-wer 3a02e8d
Merge branch 'master' of github.com:scalableminds/webknossos into col…
daniel-wer f2e6ddc
fix mapping info view if custom colors are used, but missing -> make …
daniel-wer e416287
Merge branch 'master' of github.com:scalableminds/webknossos into col…
daniel-wer 537969b
apply PR feedback, default color for mapping with colors, add changelog
daniel-wer e7171ae
Merge branch 'master' into colors-for-mappings
daniel-wer 983b9db
Merge branch 'master' into colors-for-mappings
daniel-wer 47edf2f
Merge branch 'master' into colors-for-mappings
daniel-wer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope the increased texture uniform count will not become a problem for older hardware :/ Can you test on browserstack whether iPad still works? 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mappings will be disallowed (and the textures won't be attached, see the check a couple of lines above which is not visible here) if there are not enough textures available (
Model.isMappingSupported
), so this shouldn't be a problem, right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's right. However, the uniform is always defined in JS-land. I'm not sure whether this has implications on some systems. But probably not. We'll see :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The uniform "definition" is inside a
if (segmentationLayer != null && Model.isMappingSupported) {
check, so it should not have any implications :)