Skip to content

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

Merged
lightningterror merged 1 commit into
masterfrom
blend-mix-alpha-clamp
Dec 27, 2021
Merged

GS-hw: Extend Blend mix to work when alpha is higher than 1.#5213
lightningterror merged 1 commit into
masterfrom
blend-mix-alpha-clamp

Conversation

@lightningterror

Copy link
Copy Markdown
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.
@lightningterror lightningterror merged commit 6a431da into master Dec 27, 2021
@lightningterror lightningterror deleted the blend-mix-alpha-clamp branch December 27, 2021 19:22
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.

1 participant