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

Commit 37569f7

Browse files
committed
PR feedback changes from Matt Dean
1 parent c759e9f commit 37569f7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

PostProcessing/Runtime/PostProcessRenderContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public RenderTexture GetScreenSpaceTemporaryRT(int depthBufferBits = 0, RenderTe
172172
return RenderTexture.GetTemporary(desc);
173173
#else
174174
int actualWidth = width;
175-
int actualHeight = height
175+
int actualHeight = height;
176176
if (widthOverride > 0)
177177
actualWidth = widthOverride;
178178
if (heightOverride > 0)

PostProcessing/Runtime/Utils/RuntimeUtilities.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,8 @@ public static Matrix4x4 GenerateJitteredProjectionMatrixFromOriginal(PostProcess
446446
float tanVertFov = Math.Abs(tTan) + Math.Abs(bTan);
447447
float tanHorizFov = Math.Abs(lTan) + Math.Abs(rTan);
448448

449-
jitter.x *= tanHorizFov / context.xrSingleEyeWidth;
450-
jitter.y *= tanVertFov / context.height;
449+
jitter.x *= tanHorizFov / context.screenWidth;
450+
jitter.y *= tanVertFov / context.screenHeight;
451451

452452
float left = jitter.x + lTan;
453453
float right = jitter.x + rTan;

0 commit comments

Comments
 (0)