feat: add vertex color preset system across all tools - #1
Merged
Conversation
- Replaced the hardcoded (0.0, 0.7, 0.0) default vertex color with a customizable Color Preset system. - Added a new "Vertex Colour" UI dropdown to all 6 tools (Fake AO, Fake Damage, Edge Dirt, Smooth Edge, Decal Tool, Surface Painter). - Users can now easily select from Green, Red, White, Blue, Yellow, or use a Custom RGB swatch. - The core alpha channel calculations, geometry generation and Sollumz integrations remain completely unaffected.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR replaces the hardcoded
(0.0, 0.7, 0.0)default vertex color with a customizable Color Preset system for all tools (Fake AO, Fake Damage, Edge Dirt, Smooth Edge, Decal Tool, and Surface Painter).Why This is Needed
Manually changing Vertex colors in Vertex Paint mode often destroyed the alpha channel unless users specifically remembered to uncheck "Affect Alpha" in their settings. This PR automates color selection directly in the UI, keeping alpha channels perfectly safe.
Changes Made
COLOR_PRESETStoshared/vertex_color.py(Green, Red, White, Blue, Yellow, Custom).Important Note
The core alpha channel calculations, geometry generation, and Sollumz integrations remain completely unaffected. This simply allows users to pick different RGB values for their
BYTE_COLORattributes instead of being locked to green!