Skip to content

Commit

Permalink
fix(sample): image is flipped in sync mode
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Dec 2, 2021
1 parent f04ba48 commit a3668be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mediapipe/Samples/Common/Scripts/Screen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void ReadSync(TextureFrame textureFrame)
if (!(_screen.texture is Texture2D))
{
_screen.texture = new Texture2D(_imageSource.textureWidth, _imageSource.textureHeight, TextureFormat.RGBA32, false);
_screen.uvRect = new UnityEngine.Rect(0, 0, 1, 1);
_screen.uvRect = GetUvRect(RunningMode.Sync);
}
textureFrame.CopyTexture(_screen.texture);
}
Expand Down

0 comments on commit a3668be

Please sign in to comment.