Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question point texture positioning

Discussion in 'Shader Graph' started by Zimaell, Sep 11, 2023.

  1. Zimaell

    Zimaell

    Joined:
    May 7, 2020
    Posts:
    415
    I'm making a shader for a terrain, at the moment I've done the following - using a script I created data about where what texture should be, in the shader graph I get the position of the terrain vertex, based on the position and texture data I display the desired texture at the required vertices, I also I set the “stretch” required, this is so that the textures do not stretch between the vertices, everything practically works out except for the corners, look at the screenshot, this situation occurs when one vertex has two directions, as you can see it turns out to apply only to one side, is it possible to apply to both?
    I don’t know, maybe can get the normal of the pixels, or the polygon....
     

    Attached Files:

  2. Zimaell

    Zimaell

    Joined:
    May 7, 2020
    Posts:
    415
    any ideas?