OccluderPolygon

Extends: roAssociativeArray

A convex canvas-space polygon that is guaranteed to hide whatever lies behind it.

Properties

  • xs (Array.<float>) — Canvas-space vertices, either winding, 3 or more points.
  • ys (Array.<float>)
  • depth (float) — The farthest vertex's distanceFromCameraFront.
  • area (float) — Projected area, used to keep the largest occluders when capping their number.