Search Unity

Question Shader only works on 2D object?

Discussion in 'Editor & General Support' started by qiveal, Aug 4, 2022.

  1. qiveal

    qiveal

    Joined:
    Jan 31, 2022
    Posts:
    320
    For reference I got the following shader: shader.png

    The problem is that since the tiling is a Vector2 I can't use this on any 3d object. Is there a way to make it work on a 3d object? Without it looking stretched?
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,911
    That's a gross misunderstanding of what tiling is about. I suggest you learn about texture mapping and UV mapping to understand how 2D textures are mapped onto 3d objects.
     
  3. qiveal

    qiveal

    Joined:
    Jan 31, 2022
    Posts:
    320
    Sorry, I know how it works I was just trying to get more info, I'm not insanely experienced with shaders.