Arvtesh / UnityFx.Outline

Screen-space outlines for Unity3d.
MIT License
1.26k stars 90 forks source link

Update URP OutlineColor shader to remove bug #68

Closed J0m1ty closed 1 year ago

J0m1ty commented 1 year ago

Upon building, multiple people get the error "invalid subscript 'uv' at line 26 (on d3d11)".

Please see this Unity Forum thread

I don't think the code is doing anything other than creating an error. This is my first PR so apologies if I'm terribly wrong about this.

Arvtesh commented 1 year ago

This is not the right fix. The texture sampling is needed to support sprites with alpha and cutoff values. This would only fix it for one case, but break for others.