Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Frag shader - adding falloff to SDF

Discussion in 'Shaders' started by WildStyle69, Apr 20, 2023.

  1. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    317
    Hello!

    I'm having trouble adding falloff to an SDF I'm creating for a frag shader. The falloff result adds artifacts or shows dots on the line points, why is that?

    Is there a way to apply falloff smoothly to the SDF line?

    Any pointers much appreciated, thanks!

    // Wildstyle
     
    Last edited: Apr 20, 2023
  2. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    317
    Fixed already - thanks!