Search Unity

Billboard shader warnings.

Discussion in 'Shaders' started by FlyingOstriche, Jun 4, 2013.

  1. FlyingOstriche

    FlyingOstriche

    Joined:
    Jul 13, 2012
    Posts:
    15
  2. RC-1290

    RC-1290

    Joined:
    Jul 2, 2012
    Posts:
    639
    It's not at line 51, but you should search for a constructor with the wrong number of arguments. For example, a float3(0.5, 0.2) would give the same error, unless you add another argument.

    I'm not going to tell you where it is exactly, because you'll need to be able to solve problems like this more often.

    The examples on the wiki are often written for a compiler that is less strict about errors like these. And unfortunately, the shader compilers rarely give the correct line number.

    [Edit] Also, for future reference: Please include an actual question or conclusion to your post next time, since it might not be as obvious.
     
    Last edited: Jun 5, 2013