Search Unity

UV position to world position

Discussion in 'General Graphics' started by lcaExtende, Jul 17, 2020.

  1. lcaExtende

    lcaExtende

    Joined:
    Sep 2, 2019
    Posts:
    25
    Hello,

    What is the best way to convert a UV / Texture position to a world (or local) position in Unity?

    upload_2020-7-17_11-27-27.png
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    What exactly are you attempting to do, because the answer is somewhere between the three options if "it's impossible", "first you need to pass the entire mesh vertex, triangle, and UV data to the shader so that the fragment shader can raytrace the position", and "you don't need to, you already know the world position".