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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

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:
    4
    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!