Writing a Snow Covered Shader @WorldOfZeroDevelopment
Writing a Snow Covered Shader  @WorldOfZeroDevelopment
Uploaded October 2019 | Updated November 2026, 1 hour ago
Lets write a custom snow covered surface shader in Unity that can procedurally generate snow and place it on top of any object in our scene. This will let us add any amount of snow to an object in any orientation and get it placed in your world really easily.

This shader is built using world space normals and dot products.

Every mesh has normal values applied to their vertices, these normals represent the orientation of the vertex in `object space`. `object space` is the orientation of normals relative to the object itself. We want these normals in `world space` so that they are relative to the rest of our game world.

Once we have the world space normal we can compare that to the direction of our snow. We use a dot product for this. Then, after we have a measure of how in-line our world space mesh normal is with the snow direction we can determine whether to draw snow or the default texture.

The snow covered shader is available on GitHub here: github.com/WorldOfZero/UnityVisualizations/tree/master/SnowTopped

Join the World of Zero Discord Server: discord.gg/hU5Kq2u
Writing a Snow Covered ShaderUsing C#s Yield KeywordUsing Python and Argparse to Build Quick ScriptsRedesigning our C# Scripting in Unity ToolGenerating Images from SVGs with Unity and InkscapeExploring Zenject - Learning how to use Dependency Injection in UnityWhat Happens When You Snap Vertices To A Grid?Creating and Deleting Highscores - Online Highscores - Part 2Starting to Setup the Components - Day 1 - Building a Health DashboardAn Abstraction of our Character ControllerGetting Started Building Pong in my Terminal - Pong in Bash - Part 1Can You Hear Me Now - Trying and Failing to Use Unitys Microphone
World of Zero |

Writing a Snow Covered Shader

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER