Skip to content
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

GS-hw: Extend Blend mix to work when alpha is higher than 1. #5213

Merged
merged 1 commit into from
Dec 27, 2021

Conversation

lightningterror
Copy link
Contributor

Description of Changes

Clamp the alpha(As/Af) to 1 in the shader, it is already clamped to 1 in hw blend unit.
It should allow to better render the effects, still not fully accurate but it's closer to what we want.
Hopefully it helps D3D11 more.

Rationale behind Changes

Accuracy.

Suggested Testing Steps

Both renderers are affected, however more noticeable on D3D11, test Blending with higher focus on D3D11.

@lightningterror lightningterror changed the title GS-hw: Extent Blend mix to work when alpha is higher than 1. GS-hw: Extend Blend mix to work when alpha is higher than 1. Dec 26, 2021
Clamp the alpha(As/Af) to 1 in the shader, it is already clamped to 1 in hw blend unit.
It should allow to better render the effects, still not fully accurate but it's closer to what we want.
Hopefully it helps D3D11 more.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant