Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 9f74813

Browse files
committed
TAA port to GetScreenSpaceTemporaryRT
1 parent c0ecfac commit 9f74813

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

PostProcessing/Runtime/Effects/TemporalAntialiasing.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ RenderTexture CheckHistory(int id, PostProcessRenderContext context)
164164
{
165165
RenderTexture.ReleaseTemporary(rt);
166166

167-
rt = RenderTexture.GetTemporary(context.width, context.height, 0, context.sourceFormat);
167+
rt = context.GetScreenSpaceTemporaryRT(0, context.sourceFormat);
168168
GenerateHistoryName(rt, id, context);
169169

170170
rt.filterMode = FilterMode.Bilinear;
@@ -176,7 +176,7 @@ RenderTexture CheckHistory(int id, PostProcessRenderContext context)
176176
{
177177
// On size change, simply copy the old history to the new one. This looks better
178178
// than completely discarding the history and seeing a few aliased frames.
179-
var rt2 = RenderTexture.GetTemporary(context.width, context.height, 0, context.sourceFormat);
179+
var rt2 = context.GetScreenSpaceTemporaryRT(0, context.sourceFormat);
180180
GenerateHistoryName(rt2, id, context);
181181

182182
rt2.filterMode = FilterMode.Bilinear;

PostProcessing/Shaders/Builtins/CopyStd.shader

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Shader "Hidden/PostProcessing/CopyStd"
4141

4242
o.texcoord = o.texcoord * _MainTex_ST.xy + _MainTex_ST.zw; // We need this for VR
4343

44-
4544
return o;
4645
}
4746

0 commit comments

Comments
 (0)