Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to apply the texture to the desired polygons?

Discussion in 'Shaders' started by Zimaell, May 28, 2023.

  1. Zimaell

    Zimaell

    Joined:
    May 7, 2020
    Posts:
    401
    For example, I have polygons at a certain angle, or with certain vertex coordinates, how to apply a texture to them?
    that is, how to apply the texture to the polygons I need?
     
  2. burningmime

    burningmime

    Joined:
    Jan 25, 2014
    Posts:
    845
    If you have a model that you want to have different textures, you can open it up in like Blender or something and apply the materials to the exact polygons you want. When Unity imports it, it should create separate materials and when you add the object to the scene with its MeshRenderer, it should have those materials already attached.
     
  3. Zimaell

    Zimaell

    Joined:
    May 7, 2020
    Posts:
    401
    but when it comes to terrain?
    (for example, I need to automatically paint steep slopes with a certain texture)