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

Commit 361863e

Browse files
committed
Removed unnecessary variables.
Removed whitespace.
1 parent 4fda1ba commit 361863e

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

PostProcessing/Runtime/Effects/MultiScaleVO.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ enum Pass
4040
readonly float[] m_InvThicknessTable = new float[12];
4141
readonly float[] m_SampleWeightTable = new float[12];
4242

43-
readonly int[] m_Widths = new int[7];
44-
readonly int[] m_Heights = new int[7];
4543
// Scaled dimensions used with dynamic resolution
4644
readonly int[] m_ScaledWidths = new int[7];
4745
readonly int[] m_ScaledHeights = new int[7];
@@ -148,18 +146,14 @@ Vector3 GetSizeArray(MipLevel mip)
148146

149147
public void GenerateAOMap(CommandBuffer cmd, Camera camera, RenderTargetIdentifier destination, RenderTargetIdentifier? depthMap, bool invert, bool isMSAA)
150148
{
151-
// Base size
152-
m_Widths[0] = camera.pixelWidth * (RuntimeUtilities.isSinglePassStereoEnabled ? 2 : 1);
153-
m_Heights[0] = camera.pixelHeight;
149+
// Base size
154150
m_ScaledWidths[0] = camera.scaledPixelWidth * (RuntimeUtilities.isSinglePassStereoEnabled ? 2 : 1);
155151
m_ScaledHeights[0] = camera.scaledPixelHeight;
156152

157153
// L1 -> L6 sizes
158154
for (int i = 1; i < 7; i++)
159155
{
160156
int div = 1 << i;
161-
m_Widths[i] = (m_Widths[0] + (div - 1)) / div;
162-
m_Heights[i] = (m_Heights[0] + (div - 1)) / div;
163157
m_ScaledWidths[i] = (m_ScaledWidths[0] + (div - 1)) / div;
164158
m_ScaledHeights[i] = (m_ScaledHeights[0] + (div - 1)) / div;
165159
}
@@ -186,7 +180,7 @@ public void GenerateAOMap(CommandBuffer cmd, Camera camera, RenderTargetIdentifi
186180
}
187181

188182
void PushAllocCommands(CommandBuffer cmd, bool isMSAA)
189-
{
183+
{
190184
if(isMSAA)
191185
{
192186
Alloc(cmd, ShaderIDs.LinearDepth, MipLevel.Original, RenderTextureFormat.RGHalf, true);

0 commit comments

Comments
 (0)