Search Unity

Question How to rotate texture (layer terrains) / or material in terrain

Discussion in 'Shaders' started by Lorilleux, Dec 22, 2022.

  1. Lorilleux

    Lorilleux

    Joined:
    Dec 22, 2020
    Posts:
    5
    Hello, I am looking for help on how to rotate the texture in terrain layer properties (0 - 360°). I found a working solution here: https://forum.unity.com/threads/rotation-of-texture-uvs-directly-from-a-shader.150482/. But the problem is that I need to either:
    1. Rotate each texture directly in the layer properties.
    2. I need to create a material that can be painted over with other textures. I have tried merging the individual shaders together from: https://forum.unity.com/threads/rotation-of-texture-uvs-directly-from-a-shader.150482/ and: https://github.com/TwoTailsGames/Un...rrainShaders/Splats/Standard-FirstPass.shader , but I can't get to the right solution. Either I can still rotate the texture when creating the material, but then it can't be redrawn with the new textures...Thank you so much for your help!