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.

Question how to disable uv interpolation

Discussion in 'Shader Graph' started by wb646511, Nov 20, 2022.

  1. wb646511

    wb646511

    Joined:
    Nov 20, 2022
    Posts:
    1
    is it possible to get the uv of the nearest vertex rather than the interpolated one in shader graph?
    i am triying to use the uvs of a mesh to specifi which texture from a texture2DArray the shader should get but because uvs are interpolated it also uses other textures between textures. if it is not possible to disable uv interpolation, is it perhaps possible to pass data through a mesh thad does not get interpolated between vertices?
     
  2. Shiv2k3

    Shiv2k3

    Joined:
    Jun 30, 2019
    Posts:
    112
    Hey, did you get this working?