Invert Alpha UI Blend Float+Shader update #392
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.
I split this up into a separate PRs. See #390
for more screenshots/details. This specific PR changes the invert_alpha from a boolean 1/0 to a float value instead. To accomplish this, I updated the compiled alpha_luminance_sprite_ps_SpritePixelShader.inc and alpha_luminance_sprite_ps.fx to accept float alpha values from the UI. Finally, it handles the config/updates it if someone is using profile with boolean invert_alpha. it will change to float and save it in the profile for next time.
This fixes games such as Persona 3's UI AHUD bespoke blend, as well as fixes Professional Baseball Spirits UI from being completely missing/clamped due to the alpha restrictions, which was my main reason for opening #377
if you require access to make edits let me know and I am happy to collaborate on this to make it better coded