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.
  2. Dismiss Notice

Get shader render to UV space

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

  1. lcaExtende

    lcaExtende

    Joined:
    Sep 2, 2019
    Posts:
    25
    Hi !

    I want to get the rendering of the materials in the UV channel of the object. But I do not know how...

    upload_2020-7-2_9-36-44.png

    UV settings of object in blender :

    upload_2020-7-2_9-33-38.png

    Desired result :

    upload_2020-7-2_9-38-0.png


    Do you have any ideas ?

    Thank you
     
  2. mouurusai

    mouurusai

    Joined:
    Dec 2, 2011
    Posts:
    349
    You should write custom shader and use UV coordinates instead vertex coordinates inside vertex shader.
     
  3. lcaExtende

    lcaExtende

    Joined:
    Sep 2, 2019
    Posts:
    25
    Thank,

    You have a example pls ? :(
     
  4. mouurusai

    mouurusai

    Joined:
    Dec 2, 2011
    Posts:
    349
  5. lcaExtende

    lcaExtende

    Joined:
    Sep 2, 2019
    Posts:
    25
    thank you mouurusai !

    But i tried to modify the shader of the link but I did not succeed. I'm not good with shaders :(