Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Can't reproduce error Asset Store QA has with PBR shader

Discussion in 'Shaders' started by Ryan-Gatts, Oct 1, 2014.

  1. Ryan-Gatts

    Ryan-Gatts

    Joined:
    Sep 27, 2012
    Posts:
    54
    I'm trying to submit a simple PBR shader for free to the asset store, but it's getting an error on their end that I'm not able to reproduce on my machine. Any ideas?

    I've attached the shader as well, if you want to try it out.

     

    Attached Files:

  2. mouurusai

    mouurusai

    Joined:
    Dec 2, 2011
    Posts:
    350
    4.5.2f1 works fine
     
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,589
    Compiles without error on Unity 4.6.0b17 for Windows with build-targets WebPlayer, Standalone, iOS, Android, Blackberry, Windows Store and Windows Phone 8 too.

    Do you know which Unity version they tested your package against?
     
  4. Ryan-Gatts

    Ryan-Gatts

    Joined:
    Sep 27, 2012
    Posts:
    54
    Thanks for testing it, guys :)

    No, I have an email out to them asking about their build environment, but I only sent it last night; no reply yet. :/
    I worry that they may be testing on a machine that doesn't support Shader Model 3, but that seems improbable for a machine meant to be testing shaders, right?
     
  5. Daniel_Brauer

    Daniel_Brauer

    Unity Technologies

    Joined:
    Aug 11, 2006
    Posts:
    3,355
    The parse error is on line 26 (CGPROGRAM). It seems like their copy of Unity isn't even making it into the Cg.

    Since it's a compilation error, the machine's capabilities shouldn't matter at all.
     
  6. Farfarer

    Farfarer

    Joined:
    Aug 17, 2010
    Posts:
    2,249
    Could be something like mismatched line endings? I know osx/win can sometimes get fussy over things like that.