PerspectiveSlice

One horizontal band of the ground: a whole-pixel source rect of the top-down bitmap, and where/how much to scale it on the composite.

Properties

  • srcX (integer)
  • srcY (integer)
  • srcWidth (integer)
  • srcHeight (integer)
  • destX (float)
  • destY (float)
  • scaleX (float)
  • scaleY (float)
  • exactSrcLeft (float) — the exact (fractional) source span that should fill the frame width
  • exactSrcWidth (float)
  • nearDepth (float) — camera-forward depths of the band's near and far edges
  • farDepth (float)