LWRP - Sprite Fog

I’m trying to get Linear fog working with LWRP and ShaderGraph and am stuck!

Are there any example shaders available for a ShaderGraph SpriteRenderer with Fog?
We need more examples @ !

Documentation is no help to me without examples, I still don’t know how to use it.
https://github.com/Unity-Technologies/ScriptableRenderPipeline/blob/master/com.unity.shadergraph/Documentation~/Fog-Node.md

According to this response, all lit master nodes have fog support built-in:

I’m not getting Fog with the new SpriteLitMasterNode @ for 2D sprites.

The Sprite Lit Master Node is for the 2D Renderer in Universal RP. It doesn’t support fog at the moment.

1 Like

@yuanxing_cai Any updates on the fog support? It would be fantastic to get some simple examples into the Documentation for:

Fog Shaders
Additive Shaders
Lit / Unlit / Vertex

We currently have no plan to support fog in the shaders we provide. However, the new 2D demo we just released has some custom shaders that mimic fog (for the background layer). You can check it out here: https://assetstore.unity.com/packages/essentials/tutorial-projects/lost-crypt-2d-sample-project-158673

@yuanxing_cai it’s a beautiful project. I’ll see what I can pinch from it :slight_smile: