How to make outline to have uniform thinkness

Hi there,

I’m working on an outline shader in Unity and aiming for consistent stroke thickness regardless of RectTransform width and height changes.

Is there a way to obtain the size delta using a shader graph node, or is there an alternative solution for achieving uniform thickness?

Appreciate your insights. Thanks!

9624206--1366637--upload_2024-2-5_12-38-54.png

9624206--1366637--upload_2024-2-5_12-38-54.png

The Quest for Very Wide Outlines. An Exploration of GPU Silhouette… | by Ben Golus | Medium

great article :slight_smile: