FosterFramework / Foster

A small C# game framework
MIT License
450 stars 37 forks source link

Packer DuplicateEdges flag #40

Closed MrBrixican closed 11 months ago

MrBrixican commented 11 months ago

DuplicateEdges enables copying border pixels into padding. It copies 1 pixel in each direction and only when Padding >= 2.

This helps with annoying texture bleed problems at non whole scaling/transforms for tile based games.

Additionally, subtextures are now "centered" in their packed node to allow padding on Top/Left texture page borders.

NoelFB commented 11 months ago

This looks good to me! I wonder if we should name these all slightly differently?

Either way, merging this in for now as I like having this included!