Implement support for group layer blending #1077
Merged
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.
Layers that belong to the same group are now being blended together into a single texture, which represents the entire group. Layers outside the group are not affecting the group's blended texture. This has several advantages:
Recreating the HD Index Painting technique shown in the video I linked above. "Layer 1" is the black and white layer where we draw, "Layer 3" is the dithering pattern, and they are both being blended together by "Group 2", which contains a posterize and a gradient map layer effect.
2024-08-11.19-47-30.mp4
Group 3, containing a pixel and a 3D layer, is being used by Layer 2 which acts as a clipping mask.
Bugs fixed:
This PR effectively makes group layers actually affect the blending process, rather than having group layers simply be for organization purposes and do nothing.
However, it might be a good idea to introduce a "pass through" blend mode that exists only for group layers, which would restore the previous behavior and make group layers have no effect on the blending process.EDIT: Done