Search Unity

Resolved How to create 'world to tangent matrix' in shader graph?

Discussion in 'Shader Graph' started by NarberalTools, May 22, 2020.

  1. NarberalTools

    NarberalTools

    Joined:
    Jul 8, 2019
    Posts:
    63
    I don't know how to create it in shader graph.
     

    Attached Files:

    • 222.jpg
      222.jpg
      File size:
      60.6 KB
      Views:
      500
  2. chrismarch

    chrismarch

    Joined:
    Jul 24, 2013
    Posts:
    472
  3. NarberalTools

    NarberalTools

    Joined:
    Jul 8, 2019
    Posts:
    63
    Last edited: May 22, 2020
  4. chrismarch

    chrismarch

    Joined:
    Jul 24, 2013
    Posts:
    472
    I guess I don't understand the question, and I'm not familiar with the previous shader GUI system you have a screenshot of above.

    If you want to transform a direction vector from world to tangent space in SG, you do this:

    upload_2020-5-22_15-7-50.png

    upload_2020-5-22_15-8-21.png

    upload_2020-5-22_15-8-48.png
     
    IgorAherne likes this.
  5. NarberalTools

    NarberalTools

    Joined:
    Jul 8, 2019
    Posts:
    63


    ths for help with "world to tangent". I also have a question. How he uses Multiply with A B C? Can i get it in shader graph? How to create a “centre fade” in shader graph?
     

    Attached Files:

    Last edited: May 23, 2020