Search Unity

Question Why I can't connect these nodes ?

Discussion in 'Shader Graph' started by kev42100, Jul 15, 2019.

  1. kev42100

    kev42100

    Joined:
    Apr 17, 2010
    Posts:
    61
    Hi everybody !

    I'm using the last Unity 2019.1.9 with LWRP. Last shader graph installed (5.16.1).

    If you check the two first screenshots:
    * I can't connect the output of my Vector3 to my Add node.
    * Or I can't connect the output of my Add node to the Position input of the Master node.







    I'm following the Aurora tutorial found on youtube. He uses ShaderForge, so I'm converting it to Shader Graph.

    I just would like to add an offset to the vertex position...

    => Here is the link of the tutorial, which starts at the part that I try to do...
    Thanks in advance !
     
  2. zacharyd890

    zacharyd890

    Unity Technologies

    Joined:
    Apr 18, 2018
    Posts:
    6
    fromitt likes this.
  3. kev42100

    kev42100

    Joined:
    Apr 17, 2010
    Posts:
    61
    :(
    If I had coded this shader (Cg / HLSL), I would have used the tex2Dlod function...
    Indeed, with the Shader Graph we can "forget" that :/

    Thanks a lot for your quick help !
     
  4. rustinlee

    rustinlee

    Joined:
    May 31, 2014
    Posts:
    20
    Is this possible with Texture2DArrays? I can't find a UNITY_SAMPLE_TEX2DARRAY_LOD equivalent.

    EDIT: I was able to do this with a custom function node.
     
    Last edited: Dec 10, 2020
  5. Wolfos

    Wolfos

    Joined:
    Mar 17, 2011
    Posts:
    951
    As of 2021.2 this is still an issue. Is a solution still under consideration?