Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

Help Wanted Fill Shader

Discussion in 'Shader Graph' started by stroibot, Aug 1, 2021.

  1. stroibot

    stroibot

    Joined:
    Feb 15, 2017
    Posts:
    31
    Hi, I'm trying to recreate shader that behaves like Fill Image in UI.

    Here's URP Unlit shader:


    Basically, I'm almost successful considering that I'm not good at shaders.

    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!
     
  2. stroibot

    stroibot

    Joined:
    Feb 15, 2017
    Posts:
    31
    Ok, I've managed to create radial fill shader
     
unityunity