Search Unity

Question Random tiling shader texture rotation

Discussion in 'Shaders' started by ConstrutoraJL, Jun 8, 2022.

  1. ConstrutoraJL

    ConstrutoraJL

    Joined:
    May 2, 2022
    Posts:
    4
    I've been working on a Random tiling shader to use it for large fields of grass and don't notice patterns forming.
    I mannaged to create a shader that randomly Shapes the "Tiles" but I can't find a way to rotate the tiles randomly. I only mannaged to make the tiles rotate acoording to object position or Absolute world position.

    This is the shader graphs net i have created. (I'm an absolute noob).
    Captura de Tela (273).png
    (The Add node at the and connects to the Basemap texture and the normal texture.)

    And this is the result:
    Captura de Tela (274).png
     
  2. LiterallyJeff

    LiterallyJeff

    Joined:
    Jan 21, 2015
    Posts:
    2,807
    Check out Ben Cloward's recent videos on this very subject: https://www.youtube.com/c/BenCloward/videos

    Episodes 42-48 go over UV tiling, rotation, scale, offset, randomization, pattern breakup etc. In both Unity and Unreal.
     
    ConstrutoraJL likes this.
  3. ConstrutoraJL

    ConstrutoraJL

    Joined:
    May 2, 2022
    Posts:
    4
    Thanks a lot!