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

Commit f00b860

Browse files
authored
Merge pull request #115 from Unity-Technologies/utility-mvp-fix
Removed MVP usage from CustomMotionVectorTexture shader
2 parents 6ec5880 + 30d1d8b commit f00b860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PostProcessing/Utilities/CustomMotionTexture/Shaders/CustomMotionVectorTexture.shader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Shader "Post Processing/Custom Motion Vector Texture"
4747
v2f o;
4848
o.vertex = UnityObjectToClipPos(v.vertex);
4949
o.uv = TRANSFORM_TEX(v.uv, _MotionTex);
50-
o.normal = mul((float3x3)UNITY_MATRIX_MVP, v.normal);
50+
o.normal = UnityObjectToClipPos(v.normal);
5151
o.normal = o.normal * 0.5 + 0.5;
5252
o.tangent = mul(UNITY_MATRIX_MV, v.tangent);
5353
o.transposedTangent = (mul(UNITY_MATRIX_IT_MV, v.tangent)) * 0.5 + 0.5;

0 commit comments

Comments
 (0)