Search Unity

Can't Get Custom Surface Shader Emission in Static Lightmap (Baked GI)??

Discussion in 'Shaders' started by ruj, Dec 13, 2015.

  1. ruj

    ruj

    Joined:
    Feb 28, 2013
    Posts:
    113
    I am trying to get my surface shader to emit in the static lightmaps in the scene, but I can't find any info on how you do this. It looks like it is related to the "meta" pass on the shader, and I copied what I saw going on in the legacy self-illumination shader, but it still refuses to emit.

    Does anyone know what you have to do to get a surface shader to contribute to the baked GI? Thanks
     
  2. Fallc

    Fallc

    Joined:
    Mar 13, 2015
    Posts:
    48
  3. ZinByakuya

    ZinByakuya

    Joined:
    Nov 7, 2013
    Posts:
    7
    Hey, I recently started with writing Shaders aswell. I started reading every shader in this https://en.wikibooks.org/wiki/Cg_Programming/Unity wikibook, and dude... Just start from the top with the minimal shader, analyze it. It helped me really much. If you wanna talk about shaders you can contact me.