Search Unity

Question Object is rendered far away from mesh location SOLVED

Discussion in 'Shader Graph' started by Calum, May 16, 2020.

  1. Calum

    Calum

    Joined:
    Mar 14, 2015
    Posts:
    45
    Hi there,

    I'm trying to create a wavy foliage shader and I'm followed a fair bit from a youtube video but in my attempt, the rendering of the mesh is miles away from the actual location. It disappears completely from certain viewing angles too.

    What I've noticed is that the rendering of the object is in the correct position (though about half the size it should be) when at 0,0,0. As I move the mesh around though the rendering of the mesh gets further away.

    I've also noticed that my PBR master has vertex position, normal and tangent slots rather than just a position slot which is what I see in every tutorial or screenshot online :/

    Any help getting the mesh to display properly would be greatly appreciated.

    Thanks for reading,

    C

    SOLUTION: So it seems that the problem was the camera position node.I just took that out and the shader works as expected :)
     

    Attached Files:

    Last edited: May 17, 2020