Search Unity

How to get local position in surface shader

Discussion in 'Shaders' started by MaT227, Oct 25, 2016.

  1. MaT227

    MaT227

    Joined:
    Jul 3, 2012
    Posts:
    628
    Hi there,

    I am trying to use the local position inside a surface shader and the results are quite confusing because it seems that this value is affected by a lot of parameters and I don't get why...
    As an example, the import scale factor affects the local positions.

    How to get the local vertex positions ?!
    Thanks a lot.