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

Commit 9f3a447

Browse files
committed
Fixed viewport support on builtin pipelines
Viewports work differently in LWRP and Builtin pipelines, a fix got applied a few month ago to fix it on SRPs but it broke it on Builtin...
1 parent d7ea7b7 commit 9f3a447

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

PostProcessing/Runtime/PostProcessLayer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,8 +1150,10 @@ int RenderBuiltins(PostProcessRenderContext context, bool isFinalPass, int relea
11501150
{
11511151
cmd.BlitFullscreenTriangleToDoubleWide(context.source, context.destination, uberSheet, 0, eye);
11521152
}
1153+
#if LWRP_1_0_0_OR_NEWER
11531154
else if (isFinalPass)
11541155
cmd.BlitFullscreenTriangle(context.source, context.destination, uberSheet, 0, false, context.camera.pixelRect);
1156+
#endif
11551157
else
11561158
cmd.BlitFullscreenTriangle(context.source, context.destination, uberSheet, 0);
11571159

PostProcessing/Runtime/Unity.Postprocessing.Runtime.asmdef

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,12 @@
33
"references": [],
44
"optionalUnityReferences": [],
55
"includePlatforms": [],
6-
"excludePlatforms": []
6+
"excludePlatforms": [],
7+
"versionDefines": [
8+
{
9+
"name": "com.unity.render-pipelines.lightweight",
10+
"expression": "1.0.0",
11+
"define": "LWRP_1_0_0_OR_NEWER"
12+
}
13+
]
714
}

0 commit comments

Comments
 (0)