Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions com.unity.render-pipelines.high-definition/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fixed stackLit coat screen space reflection and raytrace reflection light hierarchy and IBL fallback
- Fixed custom pass utils Blur and Copy functions in XR.
- Fixed SpeedTree graph compatibility by removing custom interpolators.
- Fixed taa jitter for after post process materials (case 1380967).

## [12.1.2] - 2021-10-22

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -636,13 +636,27 @@ TextureHandle RenderAfterPostProcessObjects(RenderGraph renderGraph, HDCamera hd
builder.SetRenderFunc(
(AfterPostProcessPassData data, RenderGraphContext ctx) =>
{
// Disable camera jitter. See coment in RestoreNonjitteredMatrices
if (data.hdCamera.RequiresCameraJitter())
{
data.hdCamera.UpdateAllViewConstants(false);
data.hdCamera.UpdateShaderVariablesGlobalCB(ref data.globalCB);
}

UpdateOffscreenRenderingConstants(ref data.globalCB, true, 1.0f);
ConstantBuffer.PushGlobal(ctx.cmd, data.globalCB, HDShaderIDs._ShaderVariablesGlobal);

DrawOpaqueRendererList(ctx.renderContext, ctx.cmd, data.hdCamera.frameSettings, data.opaqueAfterPostprocessRL);
// Setup off-screen transparency here
DrawTransparentRendererList(ctx.renderContext, ctx.cmd, data.hdCamera.frameSettings, data.transparentAfterPostprocessRL);

// Reenable camera jitter for CustomPostProcessBeforeTAA injection point
if (data.hdCamera.RequiresCameraJitter())
{
data.hdCamera.UpdateAllViewConstants(true);
data.hdCamera.UpdateShaderVariablesGlobalCB(ref data.globalCB);
}

UpdateOffscreenRenderingConstants(ref data.globalCB, false, 1.0f);
ConstantBuffer.PushGlobal(ctx.cmd, data.globalCB, HDShaderIDs._ShaderVariablesGlobal);
});
Expand Down