Skip to content

Commit

Permalink
Update cOpticalFlow.fx
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed Dec 24, 2023
1 parent def56bb commit d05bd2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shaders/cOpticalFlow.fx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ namespace cOpticalFlow
VelocityCoord.x = Origin.x * PixelSize.x;
VelocityCoord.y = 1.0 - (Origin.y * PixelSize.y);
Output.Velocity = tex2Dlod(SampleTempTex2b, float4(VelocityCoord, 0.0, _MipBias)).xy / PixelSize;
Output.Velocity.x *= -1.0;

// Scale velocity
float2 Direction = Output.Velocity * VELOCITY_SCALE;
Expand Down Expand Up @@ -286,7 +287,7 @@ namespace cOpticalFlow
DestBlend = INVSRCALPHA;
}


#else
pass
{
Expand Down

0 comments on commit d05bd2d

Please sign in to comment.