This repository was archived by the owner on Nov 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
PostProcessing/Shaders/Builtins Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,20 +128,16 @@ Shader "Hidden/PostProcessing/TemporalAntialiasing"
128128
129129 OutputSolver FragSolverDilate (VaryingsDefault i)
130130 {
131- float2 adjustedTexCoord = UnityStereoTransformScreenSpaceTex (i.texcoord);
132-
133- float2 closest = GetClosestFragment (adjustedTexCoord);
131+ float2 closest = GetClosestFragment (i.texcoordStereo);
134132 float2 motion = SAMPLE_TEXTURE2D (_CameraMotionVectorsTexture, sampler_CameraMotionVectorsTexture, closest).xy;
135- return Solve (motion, adjustedTexCoord );
133+ return Solve (motion, i.texcoordStereo );
136134 }
137135
138136 OutputSolver FragSolverNoDilate (VaryingsDefault i)
139137 {
140- float2 adjustedTexCoord = UnityStereoTransformScreenSpaceTex (i.texcoord);
141-
142138 // Don't dilate in ortho !
143- float2 motion = SAMPLE_TEXTURE2D (_CameraMotionVectorsTexture, sampler_CameraMotionVectorsTexture, adjustedTexCoord ).xy;
144- return Solve (motion, adjustedTexCoord );
139+ float2 motion = SAMPLE_TEXTURE2D (_CameraMotionVectorsTexture, sampler_CameraMotionVectorsTexture, i.texcoordStereo ).xy;
140+ return Solve (motion, i.texcoordStereo );
145141 }
146142
147143 ENDHLSL
You can’t perform that action at this time.
0 commit comments