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

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

Hi,

check this out http://docs.unity3d.com/ScriptReference/Material-globalIlluminationFlags.html :slight_smile:

Hey, I recently started with writing Shaders aswell. I started reading every shader in this Cg Programming/Unity - Wikibooks, open books for an open world 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.