hex-world
    Preparing search index...

    Function configureSeason

    • Point a material at a ClimateData and style its snow, enabling the effect unless enabled: false is passed. Safe on any material — one that doesn't declare the uniforms is skipped, so a custom material opts out simply by not having them.

      Pass null for the climate to detach without disturbing the styling.

      Parameters

      Returns void

      configureSeason(world.terrainMaterial, climate);
      configureSeason(mat, climate, { noise: 0.2, slope: 0.6 });
      setSeasonEnabled(mat, false);