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

Correct sub shader order in Unlit Shader Graph #4291

Merged
merged 6 commits into from
May 20, 2021

Conversation

pbbastian
Copy link
Contributor

Purpose of this PR

Hybrid Renderer relies on shader target 4.5 to work, so for that reason URP has a sub shader for 4.5 and one for 2.0. Unity chooses the first compatible one. The Unlit Shader Graph was putting the 2.0 subshader before the 4.5 one. This was not an issue when the platforms for each sub shader were exclusive. But since #3758, D3D11 is now in both of them. So that caused Unity to always pick shader target 2.0 for D3D11.


Testing status

Verified shader output locally.

@phi-lira phi-lira marked this pull request as ready for review April 23, 2021 09:46
@phi-lira phi-lira requested review from a team as code owners April 23, 2021 09:46
Copy link
Contributor

@cinight cinight left a comment

Choose a reason for hiding this comment

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

Verified this fixes the bug (case 1328636)

@phi-lira phi-lira merged commit f02bdb6 into master May 20, 2021
@phi-lira phi-lira deleted the universal/unlit-sg-subshader-order branch May 20, 2021 09:50
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.

4 participants