Snow Shader Wont Render Lightmap from Mixed Lights

Hey All,

I’m not a shader expert and was wondering if someone could give me a hand with this. We currently have a shader which renders snow on top of objects. If we bake the light in our scene using enlighten, everything works fine. When we bake using mixed lighting, the lightmaps bake but the objects with this snow shader wont render the baked data (looks like they dont receive light from the mixed light after bake), does anyone have any idea how to fix it?

Here are some images to illustrate what is happening
Here is what the scene looks like after being baked with a mixed directional light:

Here is what the shadowmask looks like from the above bake:

And if we switch all materials from snow shader to the standard shader (without rebaking) this is what we get:

I have also attached a copy of the shader

Thanks in advance!
Colton

3091364–233222–Snow.shader (21.4 KB)

With the latest versions of Unity they’ve made significant changes to how the baked / mixed lighting works. To support that you’ll need to rewrite a decent chunk of your shaders. It’s going to be more work than something that can be easily answered on the forums, so you may want to hire someone if you’re not comfortable trying to fix this yourself.

If you want to dive into it, try making a new surface shader, and then look at the generated shader code (there’s a button in the inspector when you have the shader selected), or start digging through the standard.shader and the various included cginc files.

Hey @bgolus
Thanks for the response, if thats the case i’ll prob just buy another snow shader off the asset store and make sure it supports mixed lighting.
Thanks,
Colton