unity-game-engineshadershader-graph

Unity Shader Graph Radial Fill


I'm trying to recreate shader that behaves like Radial Fill Image in UI.

Here's URP Unlit shader: enter image description here

But there's a problem. I want to limit my output to alpha to be only either 0 or 1, because the result is grayscale which produces unwanted looks. So, Floor it is! No? Step? No? Look what it produces, that strange pink epilepsy.

Can somebody help me so this doesn't happen?

Thanks!

PS. Ok, I figured it out. It was because of the angle gradient. So I decided to use not a gradient and this shape works until it overlaps. What shape should I use to recreate Radial Fill Image effect? enter image description here


Solution

  • OK, I've managed to create Radial Fill Shader enter image description here