Skip to content

Reactive materials

If you build your own terrain, prop, or foliage materials and want them to receive snow, rain, and wind from the sky system, use the included Material Functions. They read from the simulation’s published values (snow amount, wet amount, wind direction and speed) and inject the right effects without making you rewire your shader graph.

Material FunctionUse it onWhat it does
MF_SnowAny opaque surface (terrain, props)Layers snow on horizontal-facing parts of the surface. Drives intensity from the sky’s simulated SnowAmount.
MF_SnowandRainSame as above, when you also want wet/puddle effectsCombined snow plus wet-surface (puddles, ripples, drips, splash flipbooks).
MF_GrassWindGrass blade materials, in WorldPositionOffsetProcedural sway. Driven by the system’s wind direction and speed. No inputs, just plug it in.
MF_BushWindBush/tree materials, in WorldPositionOffsetHigher-quality wind for larger foliage. Has an AdditionalWPO input so you can chain other deformations (player-crush, hit reactions).
MF_2DCloudsSky-dome / horizon cloud overlaysCheap horizon clouds at a configurable altitude.
  1. Open the material in your project.
  2. In the Details panel, set Use Material Attributes = true.
  3. Build your normal material as a Material Attributes bundle (everything goes through MakeMaterialAttributes).
  4. Route that bundle into MF_Snow (or MF_SnowandRain).
  5. Connect the function’s output to the material’s Material Attributes output pin.

Snow now appears automatically on horizontal faces whenever the sky says it is snowing. No per-material configuration needed. You can override snow textures, tiling, and color via the function’s exposed parameters.

MF_GrassWind and MF_BushWind both go into the World Position Offset pin of your material:

  1. Open the foliage material.
  2. Find the World Position Offset pin on the material output.
  3. Plug MF_GrassWind (for grass blades) or MF_BushWind (for bushes/trees) into that pin.
  4. For MF_BushWind, optionally chain other WPO deformations through the AdditionalWPO input.

Wind direction and speed are read from the system automatically. The strength and frequency follow the simulated wind speed, so calm days are gentle and windy days lash.

MF_2DClouds is for sky-dome cloud overlays, useful when you want cheap horizon clouds layered on top of (or instead of) the volumetric system. Drop it into a sky-dome material and configure the altitude parameter to taste.