Search Unity

Override Unity's UnityStandardBRDF.cginc ?

Discussion in 'Shaders' started by chai, Jun 19, 2017.

  1. chai

    chai

    Joined:
    Jun 3, 2009
    Posts:
    84
    On 5.2.4, was able to override UnityStandardBRDF.cginc, by just placing a modified version in same directory as my shaders.

    Just upgraded to 5.5.4, and Unity is now ignoring this file.
    Overriding Autolight.cginc works fine though, so not sure what's going on.
    Odd part is modifying my own file reimports all related shaders, but it just doesn't apply the changes.

    How do you override the Standard CGINC files nowadays?
     
  2. dreamerflyer

    dreamerflyer

    Joined:
    Jun 11, 2011
    Posts:
    927
    Meet the same problem,using unity 5.6.4f1.any help?
     
  3. flyer19

    flyer19

    Joined:
    Aug 26, 2016
    Posts:
    126
    how about this now?
     
  4. Zyblade

    Zyblade

    Joined:
    Jul 1, 2014
    Posts:
    141
    You need to include the whole chain of files, which include each other, for the custom UnityStandardBRDF.cginc to be used by unity. I just included the whole CGIncludes folder and it worked. Now I need to figure out, which ones I don't need :S

    edit: For me, it were the following includes:

    Lighting.cginc
    UnityGlobalIllumination.cginc
    UnityImageBasedLighting.cginc
     
    Last edited: Feb 11, 2021