Skip to content

Commit a8c1898

Browse files
JarkkoUnityEvergreen
authored andcommitted
Fixed SRP lens flare rendering issue with Render Scale
Fixed SRP Lens Flare rendering issue with Render Scale
1 parent 7f23d6b commit a8c1898

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Packages/com.unity.render-pipelines.universal/Runtime/Passes/PostProcessPassRenderGraph.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,10 @@ public void RenderLensFlareDataDriven(RenderGraph renderGraph, UniversalResource
12791279
passData.material = m_Materials.lensFlareDataDriven;
12801280
passData.width = (float)m_Descriptor.width;
12811281
passData.height = (float)m_Descriptor.height;
1282-
passData.viewport = cameraData.pixelRect;
1282+
passData.viewport.x = 0.0f;
1283+
passData.viewport.y = 0.0f;
1284+
passData.viewport.width = (float)m_Descriptor.width;
1285+
passData.viewport.height = (float)m_Descriptor.height;
12831286
if (m_PaniniProjection.IsActive())
12841287
{
12851288
passData.usePanini = true;

0 commit comments

Comments
 (0)