Search Unity

"'mul': no matching 0 parameter intrinsic function" - What?

Discussion in 'Shaders' started by tbg10101_, May 28, 2018.

  1. tbg10101_

    tbg10101_

    Joined:
    Mar 13, 2011
    Posts:
    192
    Hello,

    I am getting this error:
    Code (Plain):
    1. Shader error in 'Custom/Billboard': 'mul': no matching 0 parameter intrinsic function; Possible intrinsic functions are: ...
    While compiling this line:
    Code (Shader):
    1. float4 vertInWorldSpace = mul(unity_ObjectToWorld, vertexInput.vertex);
    (this is in a vertex program, vertexInput.vertex is a float4)

    It doesn't look like I'm using mul() in a zero-parameter way. What is going on?
     
  2. Seyed_Morteza_Kamaly

    Seyed_Morteza_Kamaly

    Joined:
    Nov 18, 2015
    Posts:
    80
    I tested your vertInWorldSpace It's correct and I haven't any error!
    can you send whole shader?