Search Unity

Feedback There will raise a error if use Texel Size Node inside subgraph.

Discussion in 'Shader Graph' started by sevelee, Jul 28, 2019.

  1. sevelee

    sevelee

    Joined:
    Apr 5, 2017
    Posts:
    20
    Like in the file I attached. If I try use Texel size node inside a subgraph it will raise a error that XXX_TexelSize undeclared.
    But if i use this node in a shader graph it will works normal.
     

    Attached Files:

  2. sevelee

    sevelee

    Joined:
    Apr 5, 2017
    Posts:
    20
    Seems that the method of XXX_TexelSize will only works if XXX is declared in the shader. But in subgraph ( which is actually a function), the XXX is the param name of function so that XXX is NOT a shader declared variable which means XXX_TexelSize is not existence.
    I understand why this node not works inside a subgraph now. But I cann't figure out the way to fix this.
     
  3. alexandral_unity

    alexandral_unity

    Unity Technologies

    Joined:
    Jun 18, 2018
    Posts:
    119
    There is nothing that the user can do to fix it other than not using that node in a Sub Graph, it's a known issue in our bug log that we're working on addressing. c:
     
unityunity