| Latest version | 0.1.2 |
|---|---|
| Minimum Core | |
| Compatible Core | |
| Last updated | 1 year ago |
| Created | 1 year ago |
| Authors |
|
| Languages |
|
| Systems | All systems |
| Project source | Project URL |
| Read-me | Readme URL |
| License | License URL |
Pixel Perfect enhances pixel art rendering in Foundry VTT, allowing for scaling, skewing, and rotating pixel art without common artifacts, all while maintaining sharpness!
No longer do we have to choose between a blurry mess or crunchy jittery pixels! Pixel Perfect applies a filter to your tokens and tiles to bring out the pixel art goodness. Mobile Compatible! Works with animated sprites!
(Below Token Art by Retrograde Minis)
Foundry's default scaling method looks good at a distance, but leaves your art blurry when close up.
![]()
The other common method, Nearest Neighbor filtering, looks good close up, but at a distance leaves pixels looking crunchy, and will produce temporal artifacts leading to high levels of pixel jitter in motion.
![]()
Pixel Perfect gives you the best of both worlds! Sharp art up close, smooth art from a distance, and ultra temporal stability!
Pixel Perfect applies a PIXI.Filter to all tokens and tiles in the scene, to re-sample the original texture using a glsl shader based off of t3ssel8r's pixel art scaling shader for unity. As we're applying a filter to a lot of objects, this could come with some level of performance drop. I haven't managed to profile exactly what kind of performance hit this might entail. However, if you want your pixel art to shine, there's no substitute.
Based on my limited knowledge of foundry, using a filter seemed like the best way to make this module as widely compatible as possible. Currently there's only a single line that needs to be treated differently between v11 and v12, and it doesn't even have anything to do with the filter. Doing some sort of deeper overwrite of foundry functions would likely be a lot more unstable and require a lot more work to fix compatibility issues.
To install this package, open your Foundry Setup screen and navigate to your Module tab and click the Install Module button.
From there, you can either search for the package unique name: pixel-perfect or copy its manifest URL:
And paste it to the input box at the bottom of your window.

You can install this package directly to your Forge account.