Skip to content

[2022.1][URP] Decal fixes #5961

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

Merged
merged 46 commits into from
Oct 26, 2021
Merged

[2022.1][URP] Decal fixes #5961

merged 46 commits into from
Oct 26, 2021

Conversation

lukaschod
Copy link
Contributor

@lukaschod lukaschod commented Oct 8, 2021


Purpose of this PR

Fix cases:

  • Fixed decals to work with native render pass [case 1353141]
  • Fixing decals rendering to be correct with render scale [1353885]

Depends on #5369


Testing status

Tested if bugs no longer reproduce.

jonuuukas and others added 30 commits July 29, 2021 11:02
…nologies/Graphics into universal/decal-fixes

# Conflicts:
#	com.unity.render-pipelines.universal/CHANGELOG.md
#	com.unity.render-pipelines.universal/Runtime/RendererFeatures/DecalRendererFeature.cs
…phics into universal/decal-fixes

# Conflicts:
#	com.unity.render-pipelines.universal/CHANGELOG.md
#	com.unity.render-pipelines.universal/Runtime/Passes/CopyDepthPass.cs
#	com.unity.render-pipelines.universal/Runtime/Passes/ScriptableRenderPass.cs
#	com.unity.render-pipelines.universal/Shaders/Utils/CopyDepthPass.hlsl
@lukaschod lukaschod requested a review from a team as a code owner October 12, 2021 11:19
@lukaschod lukaschod changed the base branch from master to universal/staging October 12, 2021 12:08
@phi-lira phi-lira deleted the branch universal/staging October 12, 2021 14:07
@phi-lira phi-lira closed this Oct 12, 2021
@phi-lira
Copy link
Contributor

Reopening this got closed by a mistake that caused the universal/staging to be deleted.

@phi-lira phi-lira reopened this Oct 12, 2021
@phi-lira phi-lira deleted the branch universal/staging October 18, 2021 14:29
@phi-lira phi-lira closed this Oct 18, 2021
@phi-lira phi-lira reopened this Oct 21, 2021
@phi-lira
Copy link
Contributor

Merge conflicts need to be resolved. The Copy Color PR landed in master now.

…nologies/Graphics into universal/decal-fixes
…phics into universal/decal-fixes

# Conflicts:
#	com.unity.render-pipelines.universal/CHANGELOG.md
@phi-lira
Copy link
Contributor

DX11 playmode tests green: https://unity-ci.cds.internal.unity3d.com/job/9522969

@phi-lira phi-lira merged commit de7011e into universal/staging Oct 26, 2021
@phi-lira phi-lira deleted the universal/decal-fixes branch October 26, 2021 15:06
@lukaschod lukaschod restored the universal/decal-fixes branch October 28, 2021 10:47
phi-lira added a commit that referenced this pull request Nov 4, 2021
This reverts commit de7011e.

# Conflicts:
#	com.unity.render-pipelines.universal/CHANGELOG.md
#	com.unity.render-pipelines.universal/Runtime/ScriptableRenderer.cs
phi-lira added a commit that referenced this pull request Nov 5, 2021
This reverts commit de7011e.

# Conflicts:
#	com.unity.render-pipelines.universal/CHANGELOG.md
phi-lira added a commit that referenced this pull request Nov 9, 2021
* switching _CameraDepthTexture to R32Float and accommodating some stuff for that

* some changes to the Foundation Project for Repro project (to be reverted later on)

* Revert "some changes to the Foundation Project for Repro project (to be reverted later on)"

This reverts commit 80af9be.

* disable fbfetch on DbufferDeferred decals

* adding IsTransientAttachment to ScriptableRenderPass/NativeRenderPass code

* Fixed decals to work with native render pass [case 1353141]

* Adding changelog entry

* Leftover

* making depthOnly pass compatible to render color texture and changing shaders to accommodate that

* Fixing decal+native renderpass+decal+deferred scenario

* fix after updating trunk

* merge fix - change descriptor for DepthOnly configureTarget to the correct one

* enabling depthbuffer for depth copy and adding additional override for ConfigureTarget

* formatting fixes

* terrain shader passes depthonly pass fix to output clippos

* adding depth copy for renderpass as well and changing how fake depth is handled

* some cleanup and refactoring and enabling Renderpass for SS forward decals

* Fixing decals rendering to be correct with render scale. [1353885]

* Cleanup

* Cleanup

* Cleanup

* adding _OUTPUT_DEPTH keyword to CopyDepthPass to select correct output buffer in shader

* adding depth output for VFXGraph depth only passes

* changing the semantic for outDepthColor in VFXPasses.template

* Changing to correct normal sampling for decal shadergraph

* Changing image to correct texture type

* fixing DBuffer Decals CopyDepth pass not copying the depth and failing rendering

* adding fb fetch to Gbuffer decals and some other depth related fixes for decals

* fixing shader compilation error and renaming define for fb fetch idx

* Adding normal alpha multiplication with albedo alpha multiplication

* fix for RTIs non render pass platforms

* another DeferredLights null check

* null exception fix

* adding some editor-specific code to avoid a bug with editor setting incorrect depth buffer while on game view

Co-authored-by: Jonas Sideravicius <jonass@unity3d.com>
Co-authored-by: Felipe Lira <felipedrl@gmail.com>
phi-lira added a commit that referenced this pull request Nov 9, 2021
This reverts commit de7011e.

# Conflicts:
#	com.unity.render-pipelines.universal/CHANGELOG.md
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