Additional Topics

intermediate concepts

Global Snow & Rain 3 · Core Concepts

Snow Accumulation & Deep Marks

Snow Accumulation in Snow Appearance piles the snow up over the ground, as deep as its Thickness. It buries what rests in it, and Deep Marks dig into it as deep as it goes. With Snow Accumulation off, Thickness at 0, no Receivers or Performance Level Fastest, the snow is drawn on the surfaces and only Footprints and Collision Marks mark it. Snow Accumulation is off by default. When you turn it on and the Receivers list is empty, a warning under it says "Add snow receivers below."

Snow Accumulation, cross-section: a snow layer of Thickness on a terrain listed in Receivers. A crate resting in it looks buried at its base, footprints from Deep Marks dig into the layer down to the ground at most, and a rock not listed in Receivers only gets the snow look on top. Show Receivers tints the receiver surfaces green Objects look buriedat their base Deep Marks:footprints diginto the layer Thickness (m) Not in Receivers:only the snow look,no accumulation At most down to the ground:deepest mark = Thickness Terrain listed in Receivers Show Receivers: the surfaces that carry the accumulation turn green
Snow Accumulation adds a snow layer of Thickness on the terrains listed in Receivers. Objects resting in it look buried at their base, and Deep Marks dig into it down to the ground at most.

On each receiver the accumulation follows the shape of the surface seen from above: it fills small steps, such as those of a stepped roof, and slopes down to zero where the receiver ends. At the foot of a higher surface it starts a little further out and rises gently. Where it is deeper than 5 cm it is opaque, so objects buried in it do not show through.

A terrain under the Snow Accumulation, with a ring of deep marks left by the robot and a table with Block Snow/Rain and Precise

Receivers

The accumulation is drawn only on the Receivers, a list of objects that Global Snow keeps in the scene. Each object gets it only on its own renderer or terrain, not on its children. An object without a renderer or terrain of its own, such as the root of a LOD Group or an empty parent of several terrains, passes it to every mesh and terrain under it, and each one takes only its own renderer or terrain. Objects placed under a terrain, such as trees, rocks and other objects spawned by terrain tools, do not get it from the terrain row, so add them to the list if they should get it. Press Add Terrains to add every terrain of the open scenes, then open List Receivers to manage the list:

  • Drag ground objects such as roads, pavements or roofs from the Hierarchy into the list, or press + and pick one.
  • Select a row and press - to take it out. Select several rows with Cmd or Ctrl and with Shift to take them out together. Clear empties the list. Undo brings them back.
  • Untick a row to switch its accumulation off and compare. Nothing is saved: it comes back when you tick it again, close the list, save the scene or enter Play mode.
  • Tick Thickness or Slope on a row to give that object its own values: a Thickness from 0 to 0.3 m, and a Slope threshold from 0 to 1, where lower values keep the accumulation on steeper surfaces such as roofs. The row keeps them, nothing is added to the object. When a listed object sits under another listed object, the nearest row with its own values applies.
  • Each row shows how many parts the object has and warns when some of them get no accumulation. The tooltip names those parts and gives the reason for each one: its layer is not included in the Layer Mask, it is on the Default Exclusion Layer, or its shader is not drawn in the deferred G-buffer, such as forward only shaders.
  • Click the parts text of a row to replace the row with its parts, up to 100, and then take out the ones you do not want.
  • To check which surfaces carry the accumulation, turn on Show Receivers under Show Mesh in Snow Accumulation: it tints them in green.

Global Snow does not change the objects of the list. A mesh of the list carries only the last rendering layer of the project while Global Snow reads its height from above, and it gets its own Rendering Layer Mask back right after. A terrain of the list carries the last two rendering layers while the cameras draw, so a light or decal that uses those layers also reaches the terrain during the frame. A mesh out of the list never gets the snow accumulation, whatever its Rendering Layer Mask is. The Receivers belong to the scene, so profiles do not store them. After moving, adding or removing receivers, or changing the layer of a receiver, in Play mode, call GlobalSnow.RefreshReceivers() so their snow follows.

With Show Receivers on, the terrain, the only receiver of this scene, turns green. The table is not a receiver, so it keeps its colors, and the ground under it has no accumulation.

The same view with Show Receivers on: the terrain that carries the accumulation is tinted green

Objects with Global Snow Interaction, Block Snow/Rain and Precise, and with Interact off, such as a parked car, keep the accumulation off the ground under them. It slopes down to zero at their outline seen from above, over twice the Thickness (between 25 cm and 1 m). To keep a long road or path clear of snow, use the Object Snower of the Coverage Mask Editor.

The same table with Block Snow/Rain only, and then with Block Snow/Rain and Precise. Without Precise the top-down capture lets the snow in under the table, so the accumulation buries its legs. With Precise the ground under it stays bare and the accumulation ends at its outline.

A table with Block Snow/Rain only: the snow accumulation covers the ground under it and buries its legs The same table with Block Snow/Rain and Precise: the ground under it is bare and the accumulation ends at its outline

Deep Marks work in Play mode. Enable them in Footprints & Marks > Deep Marks. These objects dig marks:

  • Characters and other objects with the Global Snow Interaction component (see Global Snow Interaction). They dig the Snow Accumulation of any Receiver they rest on, such as the ground or a roof, with nothing needed on the surface. A Rigidbody without the component leaves no marks.
  • Vehicles with wheel colliders and the Global Snow Interaction component.
  • Objects added by script with AddContactSource() (see Scripting Support).

How deep an object sinks is its Sink Depth in Global Snow Interaction: it is a depth in meters, the Thickness of the accumulation reaches the ground, and a light object barely dents the snow. Objects added with AddContactSource() sink to its sinkDepthMeters, 0.1 m by default. Where the snow left under a mark is thinner than the Dirt Floor, the dirt shows through (Dirt Reveal). The marks fill back in after the Common Duration, and they are cleared when Snow or the Thickness reaches 0, so new snow grows without the old marks. Where there is no deep mark, Footprints and Collision Marks keep marking the snow when their own Enabled box is on. Without the snow accumulation (Snow Accumulation off or Performance Level Fastest), Deep Marks draw nothing, and the inspector shows a warning under Deep Marks.

The demo robot walking in the snow and leaving a trail of deep marks with raised rims

Mesh Detail, under Snow Accumulation in Snow Appearance, sets how fine the accumulation mesh is on terrains, everywhere, so the marks and the snow edges stay smooth up close: 0 keeps the terrain mesh, 0.5 gives triangles of about 20 pixels near the camera and 1 about 4 pixels, and each step of the slider changes the size by the same ratio. Higher values cost more GPU time. Default 0.5. Performance Level limits it to 0.5 at Best and 0.25 at Medium and Fastest. Turn on Show Mesh under it to see the real triangle edges in dark green over the accumulation. When a terrain is too coarse for fine marks, a ? button next to Show Mesh explains how to refine it.

Global Snow Interaction

The Global Snow Interaction component sets how an object takes the snow and how it interacts with it. Add it to the root of the character or object with Add Component > Effects > Global Snow Interaction. On a physics object, add it to the GameObject that has the Rigidbody. Its inspector has two sections: Coverage, described in Per-Object Exclusion, and Interaction, described below.

With Interact on, the object sinks into the snow, bursts snow, ripples the puddles, marks the snow with its collider and, for characters, leaves the footprint under each foot, exactly where it lands, with independent left and right prints. A component added in the editor starts with Interact on. A component added from a script starts with Interact off, so set interact to true. Scenes from Global Snow 2 keep the settings of their Global Snow Ignore Coverage component in this component, with Interact off. With Interact off the object leaves no marks, footprints, snow bursts or ripples.

The inspector shows only the options that have an effect, so an object with feet and an object without feet show different options.

Interaction section of the Global Snow Interaction inspector of Robot Kyle, an object with feet, with Interact, Plow Mode, Sink Depth, Impact FX with Intensity, Snow Powder and Chunks with Size, Water Ripples and the Feet options with Detect Feet Interaction section of the Global Snow Interaction inspector of an object without feet, with Interact, Plow Mode, Sink Depth, Impact FX with Intensity, Snow Powder with Start Speed, Chunks with Size and Start Speed, Water Splashes, Water Ripples, the Surface Marks options and an empty Feet list
ParameterDescription
InteractThe object interacts with the snow and the puddles with the options below. A moving object with Interact on, such as a car you drive, keeps the snow on the ground below it, even with Block Snow/Rain and Precise on, which still keep the rain and the snowflakes off below and inside it. On for a component added in the editor, off in scenes from Global Snow 2.
Plow ModeIt clears the whole snow accumulation under the parts of the object that pass within 5 cm of the ground, and the mark keeps the shape of the object. The trail has the pressed snow look of other Deep Marks and follows Compaction, and the marks dirt shows at its bottom while it fills again. The ground under the accumulation keeps its snow coverage. Use it for vehicles and blades that push the snow away. It does not change the width of the marks. Default off.
Sink Depth (m)Depth in meters the object sinks into the snow accumulation, up to its Thickness. At the Thickness it reaches the ground and always reveals the dirt, a bird barely marks the snow. It does not raise the object, so an object that stands on the ground stays under the snow by the Thickness minus this depth. With Deep Marks, below 0.1 m the object throws smaller snow chunks and less powder. It appears when Plow Mode is off. Range 0.02 to 0.3. Default 0.1.
Impact FXSnow burst particles when the object hits the snow, and water drops from its wheels in puddles. It does not appear on an object with an empty Feet list when Separate Stamps is on. Rain and wet snow throw no snow particles, and only wheels in puddles throw water drops; the inspector shows this note under Impact FX when Rain or Snow Wetness is above 0. It also needs Impact FX on in the Common block of the Footprints & Marks foldout. Default on.
Impact FX > IntensityAmount of snow particles and water drops this object throws on each impact. 2 and 3 throw two and three times more powder, chunks and drops. Range 0 to 3. Default 1.
Impact FX > Snow PowderThe object throws snow powder when it hits the snow. Default on.
Impact FX > Snow Powder > Start SpeedSpeed in meters per second where this object starts to throw powder. The amount grows gradually and reaches its maximum 7 m/s above this speed. Use it on objects that move fast, such as vehicles. Feet are not affected. It appears when Snow Powder is on and the Feet list is empty. Range 0 to 40. Default 3.
Impact FX > ChunksThe object throws snow chunks when it hits the snow. Turn it off on objects that do not need chunks. When no object throws chunks, Global Snow does not create them, which saves memory. Default on.
Impact FX > Chunks > SizeSize of the snow chunks this object throws, also with its feet. 1 is the default size. It appears when Chunks is on. Range 0 to 1. Default 1.
Impact FX > Chunks > Start SpeedSpeed in meters per second where this object starts to throw chunks. The amount grows gradually and reaches its maximum 12 m/s above this speed. Use it on objects that move fast, such as vehicles. Feet are not affected. It appears when Chunks is on and the Feet list is empty. Range 0 to 40. Default 8.
Impact FX > Water SplashesThe wheels of the object throw water drops when they run through puddles. The drops follow Intensity and do not depend on Snow Powder. It appears when the Feet list is empty and Separate Stamps is off. Default on.
Water RipplesRipples on the puddles the object touches. Wheels leave no ripples, they throw water drops instead. Default on.
Surface Marks > Override Mark SizeUses Mark Size instead of the size measured from the object. Without it, wheels use the width of their mesh and other objects use their collider cut at the Dig Depth. If there is nothing to measure, the Default Size of Global Snow is used. It appears when the Feet list is empty. Default off.
Surface Marks > Mark SizeRadius in meters of the Collision Marks of this object. It appears when the Feet list is empty and Override Mark Size is on. Default 0.25.
Surface Marks > Separate StampsEach collision leaves a single round stamp instead of a continuous trail, with no snow particles. It appears when the Feet list is empty. Default off.
Surface Marks > Collision DistanceDistance in meters the object must move before it leaves a new mark. It appears when the Feet list is empty and Separate Stamps is off. Default 0.3.
Surface Marks > Step Max DistanceMaximum length of a trail segment between two positions. Set it to 0 to leave marks only at the contact points. It appears when the Feet list is empty and Separate Stamps is off. Default 20.
Surface Marks > Rotation ThresholdRotation in degrees that triggers a new mark. It appears when the Feet list is empty and Separate Stamps is off. Default 3.
Feet > FootprintsDraws the sole footprint at each foot plant. The feet draw footprints only when Global Snow has Footprints on and Deep Marks are not active. It appears when the Feet list has entries. Default on.
Feet > Sole TextureIt appears when the Feet list has entries and Footprints is on. Sole of this character. Empty uses the Footprints texture of Global Snow. The shape comes from the alpha channel with the toes at the top, and the texture covers Scale meters, so the space around the sole sets the footprint size. Up to 7 sole textures of their own show next to the Footprints texture; more objects use the Footprints texture.
Feet > Feet (skeleton bones)Bones that move with each foot, such as the feet or paws of the rig, not the GameObjects of the shoes or the colliders. On humanoid rigs, Detect Feet fills them from the Animator. On other rigs, Detect Feet looks for bones named foot, paw or hoof, skips IK helper and target bones, and orders the feet left and right by name. You can also drag the foot or paw bones here: even entries are left feet, odd entries are right feet.
Feet > Detect FeetButton that detects the feet again: the foot bones of a humanoid Animator, else the bones named foot, paw or hoof, without IK helpers and in left and right order.

On a vehicle, the contact of each wheel collider with the ground leaves a mark every frame, and Deep Marks when they are on. The component also registers the object for Deep Marks, emits Impact FX when it hits the snow, and ripples the puddles it touches when Contact Ripples is on. Objects with feet leave their footprints, or Deep Marks when those are active, and never leave Collision Marks.

The top of the inspector says what the object leaves: Marks: footprints, 2 feet for an object with feet, Marks: 2 feet, deep marks only when Deep Marks are active or its Footprints option is off, or Marks: collider trail, Marks: collider stamps or Marks: plow trail for the rest.

Contacts with other moving rigidbodies, for example rocks resting on rocks, leave no marks and throw no snow. Only the ground and static or kinematic objects do. A bounce that touches the snow for a single physics step marks it and throws snow like a longer contact, and Deep Marks also follow bodies resting on slopes.

Global Snow First Person Interaction

The Global Snow First Person Interaction component leaves the steps of a first person player on the snow and the puddles. Add it to the player with Add Component > Effects > Global Snow First Person Interaction, for example to the camera or to the object with the Character Controller. In Play mode it places a left foot and a right foot at each step while the player walks. With Deep Marks on, the feet dig into the snow accumulation. With Deep Marks off and Footprints on in Global Snow, each foot draws the sole texture on the snow. If the object or one of its parents has a Character Controller, the marks are left only while it is on the ground.

Inspector of Global Snow First Person Interaction with Marks set to Two Feet Furrows, Sink Depth, Wall Slope, Trail Step, Water Ripples, Sole Texture, Step Length and Ground Distance
ParameterDescription
MarksWhat the feet dig into the snow accumulation when Deep Marks is on. Footprints digs one footprint at each step. Two Feet Furrows digs a furrow for each foot, as when the player drags the feet through deep snow: one foot moves forward at a time while the other stays, and each step leaves a footprint a little wider and deeper than the furrow. Plow removes all the snow down to the ground along the path, like Plow Mode of Global Snow Interaction. Default Footprints.
Plow Width (m)Width of the bottom of the plow trail. Shown when Marks is Plow. Range 0.2 to 2. Default 0.5.
Sink Depth (m)Depth of the footprints and the furrows. Shown when Marks is Footprints or Two Feet Furrows. Range 0.02 to 0.3. Default 0.1.
Wall SlopeSlope in degrees of the walls of the marks. 90 gives vertical walls. The marks are wider at the top than at the bottom, for example the plow trail is about 1 m wide at the top with Plow Width 0.5, Wall Slope 60 and a snow accumulation of 0.41 m. Range 30 to 90. Default 60.
Trail Step (m)Distance the furrows and the plow trail grow at a time. Lower values make them grow more smoothly as the player walks, with more updates of the marks. Shown when Marks is Two Feet Furrows or Plow. Range 0.01 to 0.5. Default 0.1.
Water RipplesRipples on the puddles the feet touch. Default on.
Sole TextureFootprint texture of the feet when Deep Marks is off and Footprints is on. Empty uses the Footprints texture of Global Snow.
Step Length (m)Distance between two steps. Range 0.3 to 2. Default 0.7.
Ground Distance (m)Maximum height of the object over the ground to count as walking. Use a value above the camera height when the component is on the camera. Default 2.

The OnFootPlant event is called at each step with the foot position and side, for example to play footstep sounds. See Scripting Support.

Collision Marks

Collision Marks are drawn where objects with a Rigidbody and the Global Snow Interaction component touch the snow: the ground, a roof, a rock or any other object below them. Nothing is needed on the surface, and terrains need no setup. Only the contacts below the object count, so walls and objects resting on top leave no marks. A Rigidbody without the component leaves no Collision Marks.

To change how an object marks the snow, add Global Snow Interaction to it and use its Surface Marks options: mark size override, separate stamps, and the distance and rotation that trigger a new mark (see Global Snow Interaction). Wheel colliders also need the component: the contact of each wheel with the ground leaves a mark every frame. Disable the component to make Global Snow ignore the collider.

Moving Objects (Characters, Vehicles)

To keep the scene snow off characters and vehicles and give them snow that stays in place as they move, see Exclude Characters, Props and Effects. For vehicle tracks, see Tracks for Vehicles.

Snow on Plants With Their Own Shaders

For snow on terrain grass, plants placed as objects, Shader Graph plants and trees drawn in the forward pass, see Add Snow to Vegetation.

Per-Object Exclusion (Global Snow Interaction > Coverage)

The Coverage section of the Global Snow Interaction component gives finer control over the snow on any GameObject. It affects the object and all its children.

Coverage section of the Global Snow Interaction inspector with Block Snow/Rain, Precise, Include Transparents, Receive Snow, Use Fast Mask Shader and Exclusion Cut Off
OptionDescription
Block Snow/RainWhen enabled, the object keeps snow and rain off the surfaces below it in the top-down capture (shelters, roofs, bridges). When disabled (default), it is left out of the capture, so it does not block snow or rain below it.
Block Snow/Rain > PreciseShown when Block Snow/Rain is on. Blocks snow and rain with a fine capture from above, so none falls under or inside the object, such as a car or a cabin with an open door. The Snow Accumulation slopes down to its outline. The rain also follows the shape of the object: drops hit its real top and throw small droplets, and still and flowing water follow its surface, so the water stays only on its level parts and runs down its slopes. No snowflakes fall under or inside it. With Interact off, as on a parked car, the object also removes the snow below it with a soft slope. With Interact on, as on a car you drive, the snow on the ground below it stays. It costs a capture of the precise objects within 64 m of the camera. Default off.
Include TransparentsThe transparent parts of the object, such as car windows, get rain drops, hit rings and running drops within 30 m of the camera. It needs Block Snow/Rain and Precise on, and Running Drops on. It costs one more draw of those parts per camera while it rains. Default off.
Receive SnowWhen enabled, the object receives snow even if its layer is not in the Layer Mask. When disabled (default), the object gets no snow.
Use Fast Mask ShaderShown when Receive Snow is off. Uses a fast shader to exclude the object. Disable it for objects with vertex animation or displacement, so the exclusion follows the deformed mesh. Default on.
Exclusion Cut OffShown with Use Fast Mask Shader. Alpha threshold for semi transparent objects. Range 0 to 1. Default 0, which uses the alpha clip of the object materials when they have one.

For the steps to use this component in each case, such as giving snow to only a few objects, see Control Snow Placement.

Coverage Mask Editor

The Coverage Mask uses a texture to choose where snow appears: white = full snow, black = no snow. Global Snow reads the red channel of the texture. On the snow accumulation, gray makes the snow thinner instead of transparent, so a soft brush leaves a slope down to the ground. The mask only shapes the snow: rain wetness, puddles and running drops do not follow it.

Inspector Setup

ParameterDescription
Coverage MaskEnable it and assign the mask in Texture (R). Click Fix Texture Import Settings if the inspector warns about them.
World CenterWorld position of the mask center.
World SizeArea covered by the mask in world units. Usually it matches the terrain size.
Pixel SizeSize in meters of one pixel of the mask texture. The brush radius of the Mask Editor must be larger than this value.
Fill Outside MaskWhen enabled, the area outside the mask gets full snow.

Scene View Mask Editor

Turn on Enable Mask Editor in the Coverage foldout, then click and drag over the scene to paint. The Mask Editor only works in Edit mode: in Play mode its options are hidden and the brush does nothing. The brush needs colliders under the mouse and only paints inside the area set by World Size and World Center. Outside it, the ring turns red and the label says so. The label also shows the cursor X and Z and the mask area.

  • Create New Mask Texture - creates a mask asset of the chosen Resolution (256 to 8192), filled with snow.
  • Brush Mode - add or remove snow. Hold Shift while painting to use the other mode.
  • Radius / Fuzziness / Opacity - brush radius in meters, soft edge of the brush, and how much each brush stamp changes the mask. Stamps add up while you hold the button, drag or click again. With a radius smaller than the Pixel Size of the mask, the Scene View shows a warning and the click does not paint.
  • Fill Mask - fills the whole mask with snow.
  • Clear Mask - removes all the snow from the area of the mask.
  • Object Snower - Cover With Snow and Clear Snow add or remove snow under the shape of a Mesh Renderer seen from above, for example to clear a road. Padding widens the area around the object. Set its Opacity to 1 to clear it at once. When the object is fully outside the area of the mask, a warning shows and the buttons are disabled. When only part of it is inside, a note says so and only that part changes.

Profiles

A Global Snow Profile stores snow and rain settings so you can reuse them. Click Create next to the Profile field to make one from the current settings, or use Create > Global Snow Profile in the Project window. Assigning a profile applies its settings. Revert loads the settings from the profile and Apply saves the current settings into it.

A profile stores the weather (Temperature, Intensity, Snow and Puddles), the Performance Level and most of the coverage, appearance, Snow Accumulation, footprints and marks, snowfall, frost and rain settings. What points to objects of the scene stays on the Global Snow component, because a profile asset cannot point to them: the Sun, the Wind Zone, the Character Controller and Ray Origin of the first person footprints and the Receivers of the Snow Accumulation. The First Person Mode and Max Ground Distance, the Compare and debug tools and the Mask Editor and Puddle Editor brushes stay there too. Revert does not bring back a receiver you took out of the list, use Undo for that.

Transition Between Profiles

To blend the settings from one profile into another, see Gradual Changes and Seasons.

Several Cameras and Split Screen

Each Game camera that shows snow gets the coverage, the Snow Accumulation of the receivers and the Block Snow/Rain objects captured around itself, so split screen players see the snow right wherever they are. A camera shows snow when it is a Base camera on one of the layers of the Cameras Layer Mask of the Global Snow Render Feature.

  • Up to 4 cameras keep their own captures, counting the Global Snow camera and the Scene View. More cameras, reflection cameras and reflection probes use those of the nearest one, and Overlay cameras use those of their Base camera.
  • Deep Marks, snowfall, rain, snow dust and the camera lens drops follow the Global Snow camera only.
  • A camera that stops drawing for 2 seconds frees its captures.

Coverage Update Methods

The top-down coverage capture can be updated in several modes (Update in the Coverage foldout):

MethodWhen to Use
Every FrameScenes where large moving objects must change the snow coverage below them in real time.
DiscreteMost scenes. Captures again after the camera moves the Distance (50 meters by default). In large scenes with a high Extension, a longer distance means fewer captures. This is the default.
ManualStatic scenes. Call UpdateSnowCoverage() from a script when needed.
DisabledNo new captures. Footprints and Collision Marks may not render correctly in this mode.
Use Discrete for the best balance of quality and performance. Switch to Every Frame only if large moving objects must block snow in real time.

Comparing With and Without Snow

Enable Compare, under Performance Level at the top of the inspector, to split the view with a line: one side shows the scene without Global Snow. Change the Line Angle and Line Width as needed. With Same Side, both sides show the same part of the scene, because a copy of the game camera renders it without Global Snow. Turn Compare off when you are done, since Same Side renders the scene twice.

Next Steps

Was this page helpful?