Search Unity

4.5 shader compile error workaround

Discussion in 'Shaders' started by hasullivan, May 27, 2014.

  1. hasullivan

    hasullivan

    Joined:
    Aug 3, 2009
    Posts:
    74
    Just submitted this.

    Having two spaces between #pragma and surface (#pragma surface,vs, #pragma surface) will cause what appears to be non related errors to be thrown when compiling a shader in 4.5.

    If you are getting errors, but everything looks fine, check for a double space.
     
  2. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    Do you have case number?