Can You Turn Off Anti-Aliasing in ALINE? (For Pixel Art Project)

Hey everyone!

I’ve been using ALINE for a while now, and I have to say, it’s fantastic! It’s super helpful not just for debugging, but even for in-game visuals. Really loving it so far.

However, I’m working on a pixel art game, and I’m aiming for a sharp, pixel-perfect look. ALINE’s anti-aliasing is very nice in most cases, but for my project, the smooth edges on the lines don’t quite fit the aesthetic. I’m already rendering at a lower resolution using a render texture to achieve that retro look, which helps, but the anti-aliasing still stands out just a bit.

I’ve looked through the settings but couldn’t find an option to disable it.

Thanks in advance for any tips or advice!

Hi

This is possible, using a custom material.

You can adjust the material that ALINE uses by setting

DrawingManager.instance.gizmos.lineMaterial

You can probably get a decent line by copying the built-in material (called “aline_outline”) and changing some settings. But it’s possible you’d have to modify the shader. Might require a bit of trial and error.

I see, thanks very much I’ll give it a go :+1: