Skip to content

Commit 252da96

Browse files
jrs-unityEvergreen
authored andcommitted
Updated NormalReconstruction to work with CoreCLR
1 parent 7476166 commit 252da96

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Packages/com.unity.render-pipelines.universal/Runtime/NormalReconstruction.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace UnityEngine.Rendering.Universal.Internal
88
public static class NormalReconstruction
99
{
1010
private static readonly int s_NormalReconstructionMatrixID = Shader.PropertyToID("_NormalReconstructionMatrix");
11-
private static Matrix4x4[] s_NormalReconstructionMatrix = new Matrix4x4[2];
11+
private static readonly Matrix4x4[] s_NormalReconstructionMatrix = new Matrix4x4[2];
1212

1313
/// <summary>
1414
/// Setup properties needed for normal reconstruction from depth using shader functions in NormalReconstruction.hlsl
@@ -57,7 +57,6 @@ public static void SetupProperties(RasterCommandBuffer cmd, in UniversalCameraDa
5757
{
5858
Matrix4x4 view = cameraData.GetViewMatrix(eyeIndex);
5959
Matrix4x4 proj = cameraData.GetProjectionMatrix(eyeIndex);
60-
s_NormalReconstructionMatrix[eyeIndex] = proj * view;
6160

6261
// camera view space without translation, used by SSAO.hlsl ReconstructViewPos() to calculate view vector.
6362
Matrix4x4 cview = view;

0 commit comments

Comments
 (0)