Search Unity

Surface Shader distortion effect

Discussion in 'Shaders' started by Vegeta1996, Sep 6, 2019.

  1. Vegeta1996

    Vegeta1996

    Joined:
    Aug 20, 2019
    Posts:
    7
    Delete
     
    Last edited: Sep 13, 2019
  2. Vegeta1996

    Vegeta1996

    Joined:
    Aug 20, 2019
    Posts:
    7
    Hello,

    I am still working on it and I think my interpretation of the variables is wrong.
    My current understanding is that the Focus is the main camera, Dnorm is the distance between the camera and the vertex and Dmax is the distance between the camera and the edge of the object.

    But I am starting to doubt that these interpretations are correct, does anyone have a better idea?