-
Notifications
You must be signed in to change notification settings - Fork 840
[URP] Factorize template & SubTarget<UniversalTarget> #5467
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
[URP] Factorize template & SubTarget<UniversalTarget> #5467
Conversation
public override void Setup(ref TargetSetupContext context) | ||
{ | ||
base.Setup(ref context); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
N.B.: Decal Sub Target still uses an independent template DecalPass.template
and it doesn't include the kUberTemplatePath
.
It probably deserves to be factorized with the common template at some point.
FYI: I moved the target from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with Sprite & Decal shadergraphs, havent seen any regressions.
# Conflicts: # com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteCustomLitSubTarget.cs # com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteLitSubTarget.cs # com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteUnlitSubTarget.cs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
commit 03cd89b Merge: d3ec70a 9fd657c Author: Paul Demeulenaere <pauld@unity3d.com> Date: Thu Sep 23 09:36:27 2021 +0200 Merge branch 'master' into urp/vfx/factorize-template-to-ease-sg-support # Conflicts: # com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteCustomLitSubTarget.cs # com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteLitSubTarget.cs # com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteUnlitSubTarget.cs commit d3ec70a Merge: 7502dba 2116818 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Mon Aug 30 13:51:30 2021 +0200 Merge branch 'master' into urp/vfx/factorize-template-to-ease-sg-support commit 7502dba Author: Paul Demeulenaere <pauld@unity3d.com> Date: Mon Aug 30 12:31:35 2021 +0200 Use common UniversalSubTarget for Sprite & Decal commit 8d271f3 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Mon Aug 30 10:41:17 2021 +0200 Use uber template for all urp target
commit 03cd89b Merge: d3ec70a 9fd657c Author: Paul Demeulenaere <pauld@unity3d.com> Date: Thu Sep 23 09:36:27 2021 +0200 Merge branch 'master' into urp/vfx/factorize-template-to-ease-sg-support # Conflicts: # com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteCustomLitSubTarget.cs # com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteLitSubTarget.cs # com.unity.render-pipelines.universal/Editor/2D/ShaderGraph/Targets/UniversalSpriteUnlitSubTarget.cs commit d3ec70a Merge: 7502dba 2116818 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Mon Aug 30 13:51:30 2021 +0200 Merge branch 'master' into urp/vfx/factorize-template-to-ease-sg-support commit 7502dba Author: Paul Demeulenaere <pauld@unity3d.com> Date: Mon Aug 30 12:31:35 2021 +0200 Use common UniversalSubTarget for Sprite & Decal commit 8d271f3 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Mon Aug 30 10:41:17 2021 +0200 Use uber template for all urp target
Merged onto staging branch. Staging branch landed onto master on #6085 |
Thanks @phi-lira, it will ease future factorization in VFX |
Purpose of this PR
This PR follows up the initial refactor PR #3705, but adding for Sprite & Decal Targets:
UniversalSubTarget
instead ofSubTarget<UniversalTarget>
It will simplify the new ShaderGraph integration for VFX : #5448
Testing status
Yamato ⏳
Comments to reviewers
See also this conversation