Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

URP : Shader Graph : Cannot connect an Add (3) node to Vertex Position (3) Master Node

Discussion in 'Universal Render Pipeline' started by MartinParadis1970, Nov 26, 2021.

  1. MartinParadis1970

    MartinParadis1970

    Joined:
    Apr 12, 2019
    Posts:
    5
    Hello, I am using Unity 2021.2.3f1 and using URP. In Shader Graph, I cannot connect the output of an Add Node (3) to the Vertex Position (3) in the Master Node. Can you tell me what I done wrong ? Thanks a lot.

    upload_2021-11-25_20-53-21.png
     
  2. revolute

    revolute

    Joined:
    Jul 28, 2014
    Posts:
    36
    What is before multiply node? Certain nodes are not supported in vertex stage and will prevent you from connecting to vertex node.
     
  3. MartinParadis1970

    MartinParadis1970

    Joined:
    Apr 12, 2019
    Posts:
    5
    Hi, here what is before the multiply. The only weed thing it did was to construct a vector3 from a float... upload_2021-11-26_9-29-41.png
     
  4. Simon_E_Sorensen

    Simon_E_Sorensen

    Unity Technologies

    Joined:
    Feb 4, 2020
    Posts:
    10
    Try and use Sample Texture 2D LOD node?
     
  5. MartinParadis1970

    MartinParadis1970

    Joined:
    Apr 12, 2019
    Posts:
    5
    Ok, I did a test that demonstrate the bug... The graph doesn't want to connect a float from a TextureSampler (let's say Alpha, but it doesn't matter, R, G, B does not work either). But a simple float from the Shader's Input works... I don't understand: upload_2021-11-26_10-32-50.png
     

    Attached Files:

  6. MartinParadis1970

    MartinParadis1970

    Joined:
    Apr 12, 2019
    Posts:
    5
    @Simon_E_Sorensen : Thanks, a Texture2D LOD works. But, my point here is : Don't fail silently, if the graph cannot connect tell us why. Because it is frustrating to see the color of the port to be the same, the type to be the same and cannot connect... Thanks again..
     
unityunity