Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Exact 2D 1 pixel outlines

$
0
0
Hey, so I've tried a lot of things in order to achieve this, however each method has some flaws that I could not fnid a way to overcome.

Offsetting the vertices - Works, however sometimes the outline is 1, sometimes 2 pixels.

Offsetting the UVs - using partial derivatives, I was able to get a nice exactly 1 pixel thick outline, however, I could not find a way to draw outside the bounds with this method as ddx and ddy only work in the fragment code.

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>