From f1eeff60f505a2b1092aea8f727bd9dd5a6926f3 Mon Sep 17 00:00:00 2001 From: Jesse Barker Date: Wed, 28 Jul 2021 08:52:06 -0700 Subject: [PATCH] Fix for undefined matrix recently added with the new motion vectors work --- .../Editor/Generation/Targets/BuiltIn/ShaderLibrary/Input.hlsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/com.unity.shadergraph/Editor/Generation/Targets/BuiltIn/ShaderLibrary/Input.hlsl b/com.unity.shadergraph/Editor/Generation/Targets/BuiltIn/ShaderLibrary/Input.hlsl index c8aa968544f..c1f4cfa54ce 100644 --- a/com.unity.shadergraph/Editor/Generation/Targets/BuiltIn/ShaderLibrary/Input.hlsl +++ b/com.unity.shadergraph/Editor/Generation/Targets/BuiltIn/ShaderLibrary/Input.hlsl @@ -90,7 +90,8 @@ CBUFFER_END #define UNITY_MATRIX_I_M unity_WorldToObject #define UNITY_MATRIX_I_P (float4x4)0 #define UNITY_MATRIX_I_VP (float4x4)0 -#define UNITY_PREV_MATRIX_I_M unity_MatrixPreviousMI +#define UNITY_PREV_MATRIX_M (float4x4)0 +#define UNITY_PREV_MATRIX_I_M (float4x4)0 #endif