Featured image of post Simple Outline – Unity Asset

Simple Outline – Unity Asset

A simple shader that creates an outline around a sprite.

I’ve been making vector art and needed a way to add stroke to my shapes inside of Unity. What better way than to write your own shader?

How it Works

Vertex shader extends the vertices outwards while the texture stays in the center allowing space for the outline. Dynamic batching is disabled because when the mesh is batched the vertices will be scaled up from the center of the world instead of the center of the sprite.


Simple Outline – Unity Asset Store

Last updated on Feb 13, 2021 19:48 UTC
Built with Hugo
Theme Stack designed by Jimmy