Automatically enable Alpha-To-Coverage when alpha clipping is on by adrien-de-tocqueville · Pull Request #6599 · Unity-Technologies/Graphics · GitHub
Skip to content

Automatically enable Alpha-To-Coverage when alpha clipping is on#6599

Merged
sebastienlagarde merged 8 commits into
masterfrom
hd/auto-a2c
Dec 16, 2021
Merged

Automatically enable Alpha-To-Coverage when alpha clipping is on#6599
sebastienlagarde merged 8 commits into
masterfrom
hd/auto-a2c

Conversation

@adrien-de-tocqueville

@adrien-de-tocqueville adrien-de-tocqueville commented Dec 14, 2021

Copy link
Copy Markdown
Contributor

Purpose of this PR

Removed the alpha to coverage option on material and shadergraphs, it will now be always enabled in forward msaa when alpha clipping is on.
URP will do it like that with #6312 and it's actually a good idea since the performance cost is minimal and it removes a shader variant. Also it's much simpler to setup because not a lot of users know about this option

There was also a frame setting to enable/disable alpha to coverage per camera. I also removed it, but maybe there can be an interest in keeping it.

I removed every mention of alpha to coverage in the docs, and search all occurence of alphatocoverage in code to make sure i removed everything.

NOTE: i'll have to mention the change in what's new if we want to merge


Testing status

There are two tests 9402 that test alpha to coverage with regular shaders and shadergraphs, they don't change with this PR
Tested that in deferred, and forward without msaa there is no issue.

Yamato looks green


Comments to reviewers

Notes for the reviewers you have assigned.

@github-actions

Copy link
Copy Markdown

@adrien-de-tocqueville adrien-de-tocqueville changed the title Hd/auto a2c Automatically enable Alpha-To-Coverage when alpha clipping is on Dec 14, 2021
@adrien-de-tocqueville adrien-de-tocqueville requested a review from a team December 14, 2021 09:40

@remi-chapelain remi-chapelain left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea in general and I agree it's also good to align on what URP does.
I'm for deleting reference of it in the editor, but it can still be interesting to note it in the doc that we use this method / algorithm by default in the MSAA / Alpha Clipping docs just for the sake of it because it was implemented recently-ish (1 year ago)

@remi-chapelain remi-chapelain self-requested a review December 14, 2021 10:46

@remi-chapelain remi-chapelain left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
Feature has been tested and tests are still passing ✔️

@sebastienlagarde sebastienlagarde marked this pull request as ready for review December 16, 2021 12:20
@sebastienlagarde sebastienlagarde merged commit e7a2db2 into master Dec 16, 2021
@sebastienlagarde sebastienlagarde deleted the hd/auto-a2c branch December 16, 2021 12:20
JulienIgnace-Unity added a commit that referenced this pull request Dec 17, 2021
… on (#6599)"

This reverts commit e7a2db2.

# Conflicts:
#	com.unity.render-pipelines.high-definition/CHANGELOG.md
#	com.unity.render-pipelines.high-definition/Documentation~/Upgrading-from-2022.1-to-2022.2.md
JulienIgnace-Unity added a commit that referenced this pull request Dec 17, 2021
… on (#6599)" (#6650)

This reverts commit e7a2db2.

# Conflicts:
#	com.unity.render-pipelines.high-definition/CHANGELOG.md
#	com.unity.render-pipelines.high-definition/Documentation~/Upgrading-from-2022.1-to-2022.2.md
sebastienlagarde pushed a commit that referenced this pull request Jan 13, 2022
* Reenable "Automatically enable Alpha-To-Coverage when alpha clipping is on (#6599)"

* Workaround shadow bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants