Author Topic: Texture2D.readpixels on Android with scaling  (Read 15369 times)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Texture2D.readpixels on Android with scaling
« Reply #15 on: December 02, 2014, 11:19:37 AM »
worldCorners gives you the 4 corners in the order of bottom-left, top-left, top-right, and bottom-right. Knowing that, convert world to screen using the camera, then calculate the difference in X between [3] and
  • , and difference in Y between [1] and
  • .