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 Help with Tri Planar Mapping

Discussion in 'Shader Graph' started by NamelessPerson, Dec 13, 2019.

  1. NamelessPerson

    NamelessPerson

    Joined:
    Apr 17, 2017
    Posts:
    26
    I have a large amount of objects of all different sizes and poly counts so I wanted to create a material that will scale correctly with all of them based on world space. It sounded like the Triplanar node should do exactly this unless I am misunderstanding it. However when just using the Triplanar node to map a simple normal texture, I get these strange artifacts
    upload_2019-12-13_10-58-34.png

    upload_2019-12-13_10-58-3.png
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Looks like the texture wrapping mode of the texture might be set to clamp.
     
  3. NamelessPerson

    NamelessPerson

    Joined:
    Apr 17, 2017
    Posts:
    26
    Just checked and it is set to repeat.
     
  4. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Is that artifact only on that specific mesh?
     
  5. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,236
    Looks like what happens if your mesh has bad normals.
     
    fffMalzbier likes this.