PAIR-code / megaplot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extend Sprite quad to accommodate border placed outside

jimbojw opened this issue · comments

commented

The border of a Sprite may be placed inside or outside the edge of the Sprite. This is controlled by the BorderPlacement attribute. The default value of 0 places the border entirely within the edge. A value of 1 places the border entirely outside the edge. A value of 0.5 would straddle the edge.

Currently, the rendering of the sprite does not account for borders placed outside the edge. This means that border pixels beyond the strict bounding box of the sprite are not rendered. Screenshot:
Screen Shot 2022-09-20 at 11 45 19 AM

Instead, the bounds of the rendered quad should extend to cover borders beyond the sprite edge.