Havoila Studio · Version 1.3.0 · Unity 6000.3 and newer · Universal Render Pipeline 17 and newer
Drop-In Sky & Weather gives Unity's Universal Render Pipeline a physically based sky with volumetric clouds and weather. The sky is computed from the air around a planet, lit by the sun and the moon, from dawn to the stars. Clouds drift and change with the wind, cast shadows, and light shafts fall between them. Rain and snow fall from the clouds, lightning strikes in them, and the ground gets wet or white.
There is no setup: add a sky to a URP scene and it becomes the skybox and lights the scene. There is no renderer feature to add (only the optional Soft Shadows use URP's own Screen Space Shadows feature). The time of day, a preset and a few sliders change the whole scene, and scripts, Timeline and the demo's weather cycle can drive it.
In Unity, its menus, shaders, sub graphs and scripts use the short name Drop-In Sky (Tools > Havoila Studio > Drop-In Sky, the HavoilaStudio.DropIn.Sky namespace).
1. Key features
- Physically based atmosphere. The sky's colours come from the air, the haze and the ozone (after Hillaire, 2020). A blue day, a white horizon, orange and red sunsets and the blue hour all follow the sun's height. Change the air to make other worlds.
- Volumetric clouds. Fair-weather cumulus, flat layers and towering storm clouds in a layer you set, with silver linings and light scattered inside them. Storm clouds rise far above the layer and spread into flat tops. They drift with the wind and change shape as they go. High, thin cirrus streaks above them catch the last light of sunset, and a veil of them rings the sun and the moon with a 22° halo and sun dogs.
- Cloud shadows and light shafts. The clouds' shadows drift over the scene (the sun light's cookie), and shafts of sunlight fall between them.
- Atmospheric fog. The same air fogs the scene. Distant hills fade into the sky's colours, with mist near the ground and shafts of light behind trees and walls. It works with MSAA and Unity's own shaders, and transparent shaders can read it to fog themselves (Drop-In Water does).
- Scene lighting. The ambient light and the reflections follow the sky as it is now, clouds included, with nothing to bake. The sun light's colour and intensity follow the air it goes through.
- Night exposure. The cameras' exposure follows the light as eyes do, so evenings and nights stay readable, with a blue shift deep in the night. URP has no auto-exposure; the sky adds it.
- Day and night. The time of day, the date and the place put the sun, the moon and the stars where they really are, or follow the computer's clock. At night the moon lights the clouds, and the real stars and Milky Way come out: the constellations rise and set as they do at your latitude. Eclipses of the sun and of the moon come on their real dates, a city's light pollution glows on the horizon and under the clouds, and the aurora's curtains fold, ripple and break into rays towards the pole, smooth at any resolution, their arcs, folds, rays and colours yours to set. Shooting stars, satellites and airliners' lights cross the night.
- HDRI export. Save the sky as it is now as an EXR panorama, clouds and sun included, for other renderers or baked lighting.
- Weather. Rain curtains hang under distant clouds, with a rainbow where the low sun lights them, and rain and snow fall around the camera, only under the clouds. Rain stops under roofs and splashes where it lands. Lightning flashes in the clouds, lights the scene and strikes the ground, with thunder if you give it sounds. The ground gets wet and white, and your materials show it through a Shader Graph sub graph.
- Presets and weather cycles. Fifteen presets, from clear to stormy and from a misty dawn to a starry night, apply at once or blend over time. A weather cycle changes the weather by itself, the same way every time for the same clock.
- Made for games and films. A clock you can drive from a network time or a Timeline gives the same sky everywhere and for every scrub. There are events for sunrise, sunset and each hour, save and load, and a recording mode for clean video frames with Unity Recorder.
2. Requirements and compatibility
| Unity | 6000.3 (Unity 6.3 LTS) or newer. Tested with 6000.3.25f1; imports and compiles cleanly in 6000.6.3f1, where the demo plays too. |
| Render pipeline | Universal Render Pipeline 17 or newer. Tested with URP 17.3, Forward and Forward+. Built-in RP and HDRP are not supported. |
| Platforms | Platforms with compute shaders: Windows, macOS, Linux and consoles. Tested on Windows with Direct3D 12 and Direct3D 11. Mobile and WebGL are not supported in this version. |
| XR | PC VR (OpenXR and others), single-pass instanced or multi-pass: the sky, the clouds, the atmospheric fog, rain and snow, lightning. Tested in a headset (a Meta Quest streaming from the PC, OpenXR) in single-pass instanced: the sky, the clouds and the rain; the fog in a headset and multi-pass are not tested in one yet. No lens flare in the headset. Standalone headsets (Android multiview) are not supported. |
| URP settings | Turn on Light Cookies in the URP asset for the clouds' shadows. Nothing else: the fog asks each camera for the depth texture it needs. The optional Soft Shadows (off by default) need URP's Screen Space Shadows renderer feature on the renderer: the Inspector adds it. |
| Optional packages | Timeline: the Time of Day and Sky Preset tracks compile only when it is installed. Unity Recorder: the recording mode switches on by itself while it captures. The Visual Engine (BOXOPHOBIC, sold separately): the bridge drives its wetness, snow, rainfall, wind and seasons (section 12). |
| Input | The sky reads no input. The demo scripts work with both the Input System and the legacy Input Manager. |
| Physics | Rain stops under the colliders of the layers you choose (built-in 3D physics). |
| Packages | Nothing to install: the sky uses Burst for the rain's raycasts, which URP installs with itself. |
3. Package contents
HavoilaStudio/DropInSky/
Runtime/ The sky component, atmosphere, clouds, fog, weather, lightning, presets, weather cycle, Timeline tracks,
the bridge to The Visual Engine (TheVisualEngine/)
Editor/ Inspectors, the Scene view overlay, the presets' grid, the HDRI export, Tools menu, Timeline clip editors,
the bridge's Inspector
Shaders/ Sky, environment, fog, precipitation, aurora, soft shadows and far shadows shaders, compute shaders,
Include/DropInSky.hlsl and SubGraphs/ for your own materials
Materials/ M_DropInSky (the skybox material)
Textures/ The night sky's all-sky maps: Night_Stars, Night_MilkyWay
Presets/ Clear, Fair Weather, Scattered, Cloudy, Overcast, Stormy, Hazy, High Clouds, Cirrus, Golden Sunset, Misty Dawn, Stormy Evening, Starry Night, Snowy, Snow Storm
Demo/ The demo scene (section 4) and what it is made of: the park's plants, rocks, terrain layers and
shaders (Park/), its places, animals, terrain tiles and forest (Wild/), demo scripts (Scripts/), and
the Weathered Lit shader (Shaders/), an example of the weather on a Shader Graph material
Documentation/ Markdown and PDF guide
README.txt, CHANGELOG.md, Third-Party Notices.txt
4. Quick start
Open the demo
Open Demo/DropInSky_Wild.unity and press Play. It is a park of 12 × 8 km in 24 terrain tiles, where the sky has room: forests, meadows and lakes in a granite valley, a salt lake and sand dunes in the desert, a highway with a gas station and its neon, a lake house with seaplanes, a log cabin, a lookout, a wind farm; deer, birds and rattlesnakes. Its 225,000 trees and rocks are drawn by Park Forest (culled on the GPU, drawn in a few hundred indirect draws).
- Fly with the right mouse button and W A S D (Q E down and up, Shift faster, mouse wheel for speed).
- Jump to viewpoints with 1 - 9, or with the buttons in the panel.
- The panel on the right sets the time of day (and lets it pass, with the length of a day), blends to presets, sets the rain, snow and lightning, turns the weather cycle on, turns the fog on or off and sets its mist, and shows the frame time. H hides it.
The park's scripts and shaders are there to show the sky, not to be reused as they are, but they show how to use what it publishes (section 12): Park Sky Fog (Demo/Park/Shaders/ParkSkyFog.hlsl) fogs transparent objects with the sky's fog, Park Water reflects the sky's environment cube, Park Water Heights publishes the water's heights so that the rain stops at its surface, and Park Wind passes the sky's wind on to Park Foliage.
Add a sky to your scene
- Tools > Havoila Studio > Drop-In Sky > Create Sky (also GameObject > Havoila Studio > Drop-In Sky > Sky). The sky uses the scene's sun (Lighting > Sun Source, else its first directional light, else a new one) and becomes the skybox.
- Pick a preset under Presets, at the top of its Inspector.
- Set the Time of Day. Under Time Passes, turn on In Play Mode to let the day go by while the game runs, and In Edit Mode to see it in the editor.
- In the URP asset, make sure Light Cookies is on, for the clouds' shadows. The Inspector warns when it is off and offers to turn it on.
Ctrl+Z undoes Create Sky, the skybox and the Sun Source included. Disabled or removed, the sky gives the scene back the skybox it had.
Turn off Unity's own fog (Lighting > Environment > Fog): the sky's fog replaces it. The Inspector offers to do it.
The Scene view overlay
The Drop-In Sky & Weather overlay in the Scene view (its Overlays menu, shown by default) sets the time of day, applies a preset, sets the rain or snow and the lightning, turns the weather and the fog on or off, and selects the sky, without going to its Inspector. Without a sky, it offers to create one. Every change can be undone.
Wet and snowy materials
Use the Drop-In Sky Weather sub graph in your Shader Graph materials (see section 8), or start from Demo/Shaders/Weathered Lit.
5. How it works
The sky is a skybox material and a component, with no renderer feature. It works with reflection probes, lighting bakes and other assets that draw the sky. (The optional Soft Shadows rely on URP's own Screen Space Shadows renderer feature.)
- Before each frame, the sky fills small tables for the air (Hillaire's transmittance, multiple scattering and sky-view look-up tables) for the sun and the camera's altitude.
- The clouds are marched into a panoramic cloud map around the camera, blended over frames (or rendered whole for recordings): over many frames while the sky stands still, so the march's noise averages away, and over fewer as the clouds, the sun or the settings change, so the map keeps up; a jump (a preset, a new time) replaces it at once. Where a texel of the map spans more than a pixel, the sky reads it smoothly, without steps along the clouds' edges. Their shadows go into the sun light's cookie, their edges as soft as the sun's disk makes them at the clouds' distance: a few metres at noon, a hundred metres or more at sunset, when the clouds that shade the scene stand tens of kilometres away.
- The skybox reads the tables and the cloud map. The same shading, without the sun's and the moon's disks, is drawn into a small cube each frame: it gives the scene its reflections and ambient light, and other assets can read it. The cube also gets the fog of the sky as the camera sees it (the air grey under the clouds, the rain's haze, the mist), so wet ground and water under a storm reflect a grey horizon, not a clear one.
- The fog fills a froxel volume per camera (tiles of the screen, slices in depth) and is applied before the transparent objects, with two blended draws (transparent objects are drawn over it: they are fogged only by shaders that read it, section 12). It never reads the scene's colour, so it works with MSAA. While there is mist, a second volume of the same size holds the mist's light, and how much mist lies in front of each pixel is worked out along its own ray: a mist a few metres thick, seen from high up, is thinner than the slices far away, and shows no rows.
- Rain and snow are drawn per camera, with one procedural draw and no particle system. Rays cast down around the camera find what they fall on.
- Soft Shadows (optional) take the place of URP's screen-space shadow texture, which opaque objects drawn with URP's shaders read for the sun's shadow. For each pixel, the casters around its place in URP's shadow map are found, their distance along the light sets the width of its shadow's edge (that distance times the angular radius of the sun's disk), and the map is filtered over that width (percentage-closer soft shadows, Fernando 2005). A blur that keeps to the surfaces then smooths the wide edges.
Everything is computed on the GPU with compute shaders. The CPU work each frame is small: setting parameters, and, while it rains, some ten thousand raycasts every few seconds on the job system's worker threads.
6. The Inspector
The Inspector groups the settings in sections. Most headers show a short status on the right (the time, the sun's height, the cloud cover, the moon's phase, the weather, the exposure the night adds); Expand all and Collapse all are at the top, and Documentation opens this guide. Hover over a setting for its description.
Presets
Presets, at the top, shows the presets, each by its image (its Thumbnail, else a small render of the sky alone from the main camera's place, at the preset's own time). Click one to apply it at once. The list stays open: click from one preset to the next to compare them. The one applied last is framed, and its name is on the section's header. The renders are made the first time, one per editor frame, and kept in the project's Library; a changed preset is rendered again, and Refresh Previews renders them all again (after changing the sky's place or date, say). Save… saves the sky as a new preset asset: all of it but Scene Lighting, Quality, the Clock and the Events, with an image of the Scene view. It saves in Assets, then where you saved the last one: keep your presets outside the package's folder, which an update replaces. The list and the menus show the presets wherever they are in the project: the package's own first, then the others by their folder (in the Scene view overlay's menu, each folder is a sub-menu). The overlay has them too, with < and > to go to the one before or after. See section 7.
Use Preset Time, at the top of the section: presets take the sky to their hour, date and place; turn this off to keep your own time.
Time of Day
- Time (hours) and Date (month, day and year; leap years count).
- Computer's Clock: the date and the time follow this computer's clock, in the Time Zone, in Edit mode too (Time, Date, Time Is and Time Passes are then greyed out).
- Time Is: Solar (12:00 is when the sun is at its highest) or Clock (the time on a clock in the Time Zone, in hours ahead of UTC, daylight saving included). In Clock time the sun crosses the south when it really does at the Longitude, a little before or after noon through the year. This PC's sets the Time Zone to the computer's.
- Longitude, Latitude, and North (the direction of north in the scene).
- Real Moon: the moon where it really is on the date, with its real phase (shown under it) and its path up to 5° off the sun's. Off, set the Moon Phase yourself (0 new, 0.5 full); it moves on as time passes.
- Time Passes, each mode with its own switch and Day Length (minutes for a whole day):
- In Play Mode: time goes by while the game runs, and the date and the moon with it. Off, the clouds stand still too (with the Game clock).
- In Edit Mode: time goes by in the editor, to see a scene's light and clouds through the day. It needs the Game clock. Clouds Speed is how fast the clouds move then, as a multiple of their real speed: 1 is as in Play mode, 60 keeps them in step with a 24-minute day, and high speeds can make them less smooth. The Scene and Game views redraw while it is on. The time reached is kept only if you save the scene. Off, the clouds stand still in the editor.
- Turn the section off to place the sun and the moon with their lights' rotations instead.
Eclipses come with the real moon, on their real dates, where the scene's place sees them. In a solar eclipse the moon covers the sun's disk and the daylight dims with the part of the sun it hides. At totality the sky darkens, the stars come out and the corona glows around the black moon. In a lunar eclipse the earth's shadow crosses the moon: the penumbra dims it, the umbra turns it copper red, and the moonlight fades. While one is going on, the section says so under the Moon Phase, with how much of the sun or the moon it hides.
The sun, the moon and the sidereal time come from published low-precision formulas, so eclipses come within a few minutes of their real times. To see one: the total solar eclipse of 12 August 2026 is total over Reykjavik (latitude 64.15, longitude -21.94) at 17:49 UTC and over northern Spain around 18:29; the total lunar eclipse of 3 March 2026 lasts from about 11:05 to 12:05 UTC, seen from the Pacific. Set Time Is to Clock with a Time Zone of 0 to enter UTC.
Sun
- The header's switch shows or hides the sun's disk in the sky. Hidden, the sunlight stays (the light, and the sky it lights), and there is no lens flare.
- Light: the sun's directional light.
- Drive Light sets its colour and intensity from the air: white and strong high up, dimmer and redder as the sun gets low, off once it has set.
- Intensity: the sunlight above the air. The sky's brightness follows it. In the light's units: a white surface facing a light of intensity 1 is lit as 1, so the sunlight's illuminance is π times the intensity.
- Shadow Intensity: how dark the sun's shadows are: the light's own Shadow Strength, edited from here. 1 lets none of the sunlight into its shadows; lower lets some through, a stand-in for the sky's light in the shade.
- Disk Size and Disk Brightness: how the sun looks. The tight glow around it, in the mist and the high clouds, grows with the disk (as it is at 1.26°, the presets' size).
- Lens Flare and Flare Intensity: a lens flare when the camera looks towards the sun: a glow, a faint halo and coloured ghosts, from procedural shapes (no textures), tinted by the sunlight.
- What stands in front of the sun's disk hides it, and the clouds do too: it fades in as the disk rises clear of a ridge, out as the clouds cover the sun, and as the sun sets.
- Under water that publishes its surface (Drop-In Water does), it is not drawn: the sun is not seen through the water's surface. It fades out over the first 30 cm under it.
- It uses URP's data-driven lens flare on a hidden object of the sky's (never saved with the scene), placed for each camera far along the sun's direction and coloured by the sun light. A lens flare you put on the sun light yourself is left alone, and the sky's is not added.
- It needs the camera's post-processing, and Data Driven Lens Flare in the URP asset (on by default).
- It is not drawn for cameras that render to a VR headset.
Atmosphere
- The header's switch turns the air off: as with an Air Density of 0 (no blue sky, no sunset colours). The haze and the ozone stay as they are set.
- Air Density: the blue of the sky and the red of sunsets. 1 is the Earth's.
- Haze, Sun Glow (how tight the haze's glow around the sun is) and Haze Color: dust, pollution and droplets. Haze whitens the horizon.
- Ozone: keeps the sky blue at twilight.
- Ground Color: the ground below the horizon, which also reflects light up.
- Under More: the air's scattering colours and scale heights, the planet's radius and the atmosphere's thickness.
- Exposure and Altitude (the scene's height above the sea) are in the Scene Lighting section.
Clouds
- The header's switch turns the volumetric clouds off (the high clouds have their own).
- Shadows (a box with its own switch): the clouds' shadows on the scene, their Strength and the Distance (km, 12 by default) they cover around the camera.
- Coverage: 0 clear, 1 overcast.
- Type: 0 flat layers, 0.5 puffy cumulus, 1 towering storm clouds.
- Variation: how much the coverage and the type change across the sky.
- Altitude and Thickness of their layer, their Density (how opaque they are: denser clouds are whiter where the sun strikes them and darker beneath; 1 is typical clouds), the Size of the shapes, and Detail: how much their sharp outlines are broken up, into billows on their sides and tops and wisps near their base (0: smooth shapes).
- Weather Size: the size of the areas of clear sky and dense clouds.
- Weather Fronts: wide stretches of more and of fewer clouds that pass with the wind, so the sky clears and clouds over as they go by. Front Size is the distance from one stretch of clouds to the next (300 km by default). In a 10 m/s wind a front takes hours to pass, so speed up the time of day to see it. 0 is none.
- Storm Clouds: cumulonimbus in some parts of the sky. Their towers rise far above the other clouds, the strongest up to the Storm Top (11000 m by default; the tropopause, from some 8000 m near the poles to 16000 m in the tropics). There they spread into a flat top blown downwind (the anvil), thick next to the tower and thinning towards its far edge; Top Spread sets how far (up to some 20 km past the tower). Weaker storms stop lower and grow no flat top, so the cloud tops vary from place to place. The storms are cells of the weather map about a third of the Weather Size apart; they drift with it, and rain falls under them with the Weather's Precipitation. 0 is none, 1 a storm in most places. The clouds then take up to 1.6 times their usual time, marched through the taller layer. A storm's tower and its anvil shade the clouds around them, kilometres away, from the sun by day and the moon by night (not black: some light gets round a storm), and the ground's light on them, and the anvil's underside is lit from below by the sunlit cloud tops. Under a sun a few degrees above the horizon, with time passing, the edges of that shade can flicker slightly as they sweep across the clouds; a shorter Draw Distance reduces it.
- Add Cloud Area places a Cloud Area 6 km ahead of the Scene view's camera (below); the row also counts the areas in the scene.
- Wind: Speed and Direction (where it comes from). Evolution: how fast the clouds change shape as they drift.
- Silver Lining (the bright rims of clouds in front of the sun, 0 to 0.95), Ambient (the sky's and the ground's light on their shaded sides and bases; under an overcast, what comes through it) and Multiple Scattering (the light scattered many times inside them, which makes thick clouds white where the sun strikes them and keeps their far side grey rather than black) tune the light in them. The clouds' lighting is matched to a physically based, path-traced reference of the same clouds: at 1, both are that reference's.
- Seed: another pattern of clouds (0 to 1000). The high clouds follow it unless they have a Seed of their own.
Cloud Areas
A Cloud Area (the button in Clouds, GameObject > Havoila Studio > Drop-In Sky > Cloud Area, or the component on any object) adds clouds above an area of the world or clears them from it, for art direction: a storm cloud standing over a valley for key art, a bank of clouds over the sea, or a hole of blue sky over the scene.
- Mode: Add Clouds (the coverage raised towards overcast) or Clear Clouds (towards a clear sky).
- Radius (m) along the object's X and Z. Its scale stretches the area into an ellipse and its rotation about the vertical turns it. The Scene view draws the area on the ground and at the clouds' base.
- Amount: 1 is covered, or clear, in the middle.
- Softness: 0 gives a sharp edge; 1 fades all the way from the middle, which makes a single rounded mass.
- Set Type and Type (Add Clouds): the kind of clouds in the area, tallest in the middle. For a cumulonimbus, use Type 1 with a Softness of 1, and give the clouds' layer a Thickness of some 8000 m, since clouds grow no taller than their layer.
The clouds' noise still drifts through the area with the wind, so their shapes change while the area stays; set the Wind Speed to 0, or leave Time Passes off, to keep a shape for a still. Rain falls under added clouds as under any other. Up to 8 areas count.
High Clouds
Cirrus, far above the other clouds. The header's switch turns them on or off; they are drawn even with the volumetric clouds off.
- Coverage (a few wisps to a veil), Opacity, and Streaks (a milky layer to long threads).
- Size, Altitude, their own Wind, and Ambient.
- Halo: the ring 22° around the sun and the moon (red on the inside, the sky a little darker within it) and a faint one at 46°. It shows clearest through a thin, smooth veil: high Coverage, low Opacity and few Streaks. 1 is as it is usually seen, 5 a vivid display.
- Sun Dogs: bright spots at the sun's height on either side, just beyond the halo, with white tails away from the sun. They move out as the sun rises and are gone once it is higher than about 60°. The moon gets them too. 1 is as they are usually seen, 5 a vivid display.
- Seed: another pattern of high clouds, the clouds below staying as they are (0 to 1000). 0 follows the Clouds' Seed.
Weather
- The header's switch turns all the weather's effects on or off: rain or snow (around the camera, in the curtains, in the haze), lightning and thunder, and the ground's wetness and snow (dry at once when off). The settings stay as they are, and presets and the weather cycle go on setting them.
- Precipitation (0 none, 1 a downpour) and Snow (0 rain, 1 snow, sleet between). It falls beneath the clouds, the thicker the more: in curtains under distant clouds, around the camera where their shadows fall (at night, with no sunlight to cast them, all around the camera). With the volumetric clouds off (another asset's clouds above, or none), it falls everywhere, carried by the clouds' wind (its Wind Speed and Wind Direction then show in this section), and the ground gets wet or white as it does under clouds. The rainbow and the distant curtains, like lightning, still need the volumetric clouds.
- Rain: Density (how many drops, against a downpour's), Streak Length (a camera's exposure: 1 is 1/30 s; longer reads as heavier rain), Drop Width (mm), Fall Speed (m/s: 4 to 9 for rain, 2 to 4 for drizzle) and Opacity.
- Rainbow: where the sun shines on falling rain, with the sun behind you and lower than 42°: in the rain you stand in (a whole arc, against clouds or clear sky alike) and in the rain curtains under distant clouds, wherever the sun gets through to them. The primary bow is red on the outside. The secondary bow, beyond it, is red on the inside, less than half as bright, and shows only in heavy rain (Precipitation above 0.7), so lighter rain gives a single bow. The rainbow fades with the rain: none in rain too thin to see. Its colours come from water's dispersion at 12 wavelengths. 1 is nature's brightness; snow makes none.
- Rainbow Width: 1 is nature's width; more gives broader, softer bands. The colours spread over the same angle whatever the width.
- Secondary Bow: 1 is nature's, 0 never shows it (always a single rainbow). It fades in from a Precipitation of 0.7 and is full at 0.8.
- Rainbow: where the sun shines on falling rain, with the sun behind you and lower than 42°: in the rain you stand in (a whole arc, against clouds or clear sky alike) and in the rain curtains under distant clouds, wherever the sun gets through to them. The primary bow is red on the outside. The secondary bow, beyond it, is red on the inside, less than half as bright, and shows only in heavy rain (Precipitation above 0.7), so lighter rain gives a single bow. The rainbow fades with the rain: none in rain too thin to see. Its colours come from water's dispersion at 12 wavelengths. 1 is nature's brightness; snow makes none.
- Snow: Density, Flake Size (cm), Fall Speed (about 1 m/s; more for wet snow), Sway (m) and Opacity.
- Rain and Snow:
- Draw Distance (m): how far around the camera drops and flakes are drawn; beyond it, the fog's haze stands for them. Beyond some 10 m they are drawn in layers, each twice as far out as the one before, sparser, and each drop there drawn a little stronger for the drops it stands for. Each doubling of the distance draws twice as many as the one before (at 40 m, some 70,000 far drops in a downpour; 400,000 at most). Drops, flakes and splashes are seen through the fog, so they fade into the haze and mist with distance.
- Wind: how much the wind carries them and slants the distant curtains (1: the clouds' wind, a third of its speed near the ground).
- Brightness of the drops, flakes and splashes.
- Haze: the haze they make in the air under the clouds (0: none).
- Distant Curtains: how dense the grey curtains under distant clouds are.
- Stopped By: the layers whose colliders stop rain and snow, such as roofs, porches and bridges. Rays are cast down around the camera. None lets it fall through everything. Water that publishes its surface (Drop-In Water does) stops them too, with no collider: the drops end at the surface instead of falling to the bottom, and splash there: droplets thrown up, without the ring they leave on the ground, since the water draws its own rings. They splash at the water's rest level, so on high waves some float a little above the troughs.
- Moving objects, meaning colliders on a Rigidbody (dynamic or kinematic: vehicles, crates, lifts, platforms), are found again every frame instead of by the rays, which would lag behind them. The drops stop on their tops where they are now, and nothing splashes on the ground beneath them. The rain splashes on their upward faces open to the sky, and each splash rides along with the object it landed on. Colliders without a Rigidbody, and terrain, are treated as standing still.
- Splashes: rain splashing where it lands, with their Splash Size, Splash Amount, Splash Opacity and Splash Distance (m, 25 by default). The rings the rain makes in the puddles of weather materials (section 8) follow the Splash Amount and fade out at the Splash Distance. Drops, flakes and splashes stay in place in the world as the camera moves. Beyond the drops and flakes near the camera, a sparser layer fills the distance (to the Draw Distance), so the fall keeps its direction when the camera moves.
- Wind Zone: a Wind Zone to follow the clouds' wind, with a Strength. Trees, grass and particles then sway with the weather.
- Lightning: Frequency (0 none, 1 strikes every few seconds) and Brightness. It needs the volumetric clouds.
- Thunder: your sound clips, played after the delay of the strike's distance, quieter and duller when far.
- Thunder Volume.
- Ground: Wetness and Snow Cover, how wet the ground is and how much snow lies with nothing falling (a street after the rain, a winter landscape under a clear sky).
- From Rain and Snow (on by default): falling rain wets the ground more and falling snow whitens it, beyond Wetness and Snow Cover; it dries or thaws back to them after. Off, the ground is only what they say, whatever falls.
- Wetting Time: minutes the ground takes to get soaked in heavy rain, or white in heavy snow. It dries or thaws three times slower (snow faster in rain). In Edit mode the ground follows the weather at once.
- The section shows how wet and white the ground is now.
- Add Weather Cycle adds a Sky Weather Cycle (section 7).
Fog
- The header's switch turns the fog off: the scene keeps its colours to the horizon; the sky and the clouds keep their own air.
- Distance Scale: how far away the scene looks. 1 is true to scale, and hills turn blue over tens of kilometres. Use more for scenes smaller than real landscapes. 0 leaves only the mist. Seen from high up, where the horizon dips below the level and the ground beyond the scene shows past its edge, that ground fades into the same haze as the scene's. It fogs the scene, not the sky and the clouds, which have their own air. What is far away fades into the colour of the air in front of it, close to the horizon's: over the sea, which reflects the horizon, it shows less than on land.
- Fog Color: tints the light the air adds. White keeps the sky's colours (blue by day, orange towards a low sun).
- Mist and Mist Height: white mist near the ground. 0.2 is a light haze, 0.5 a mist, 1 a thick fog. With a large Mist Height (a few hundred metres) it fills the scene: a fog bank. Its droplets send half the sunlight they scatter into a narrow peak around the sun (a bright ring around it) and the rest into a softer glow.
- Mist Color: tints the mist's light (smoke, dust, a coloured haze). It hides what lies behind it as much, whatever its colour.
- Mist Glow: how much of that bright peak around the sun and the moon the mist keeps (the rain's haze too). In full, as water droplets scatter light, it turns a low sun seen through a long stretch of mist into a blazing disc, so its range stops at a tenth of it: 1 keeps that tenth, the default 0.2 a fiftieth, 0 none. The rest of the mist's light stays as it is. Presets saved before 1.1.1 leave it as you set it.
- Shafts of Light: From the Clouds (the clouds' shadows in the air; the clouds' Shadows must be on) and From Objects (the scene's shadows in the air near the camera), with a Strength for all of them.
- From Far Away: the shadows of what stands far away (mountains, hills, tall buildings) in the air. When the sun or the moon has set behind a mountain, the air in front of it gets none of their light, and dark rays fall from the peaks. In the air, it works only with From the Clouds on.
- On the Scene: these shadows on the ground, the water and everything that reads URP's shadows too, within URP's shadow distance. URP's own shadow map holds only the casters close to what the camera sees: at sunrise and sunset, a ridge kilometres away would leave a lake in its shadow lit, with the sun's glint on it. The sky writes the mountains URP leaves out into URP's shadow map, each frame, and publishes its far shadows for other assets: Drop-In Water reads them beyond URP's shadow distance too (section 12). What stands only a few texels above the light's path is left out (some ten metres at sunrise, more with the sun high): the maps are coarse.
- It uses coarse shadow maps seen from the sun and from the moon (the moon's at night only, 16 MB each): 2048 texels across twice the Far Distance (km, 20 by default) around the camera, and only as tall as the landscape across the light (its terrains' heights). With a low sun, that makes their texels a few metres tall where they are tens of metres wide, so the ridges' shafts at sunrise move smoothly as the sun rises. Their shadows are softened over a couple of texels, as the sun's disk softens shadows far from what casts them. They are rendered again when the light has turned by a fraction of a texel or the camera has moved enough.
- Both faces of the shadow casters block the light, so a landscape made of one-sided surfaces doesn't let light through from below. For URP's own shadows near the camera, set such a mesh's Cast Shadows to Two Sided.
- Far Casters sets the layers that cast these shadows. On the Scene, Far Distance and Far Casters show while From Far Away is on.
- A Scene view far from the game's camera gets maps of its own (another 16 MB, 32 at night), so that neither view draws them again for the other every frame.
- The fog's resolution is set in the Quality section.
Moon
- The header's switch shows or hides the moon. Off, it gives no light, and there are no eclipses.
- Light: an optional directional light. With Drive Light, the sky sets its colour and intensity and makes it the main light while it outshines the sun.
- Intensity, Disk Size, Disk Brightness and Color. The tight glow around the moon, in the mist and the high clouds, grows with the disk (as it is at 1.5°, the default and the presets' size).
The moon shows its real near side. The seas (maria) are at their places: Imbrium, Serenitatis, Tranquillitatis and Crisium, Oceanus Procellarum, Nubium and the others. There are bright young craters with their rays (Tycho, Copernicus, Kepler, Aristarchus) and dark-floored Plato and Grimaldi. When the disk is drawn large, small craters show too, with their sides lit or shaded near the terminator. Its north points to the celestial pole, so it appears upside down from the southern hemisphere, as it should. The full moon is as bright at its edge as in its middle, as the moon's dusty ground makes it. The disk keeps its brightness whatever the Night Exposure adds, so its face is not washed out.
Night Exposure
URP has no auto-exposure. With this section on, the sky sets the cameras' exposure from the light the scene gets, as eyes and cameras adapt. Evenings and nights come out brighter, so the scene stays readable, and the day is left as it is.
The light the scene gets is the sun's and the moon's lights (the sun's through the clouds around the camera) and the ambient light. When it falls more than an f-stop below a clear day's, the exposure goes up by part of the difference.
- Night Brightness: how much of the darkness is made up for. 0 leaves nights as dark as their light; 1 makes them as bright as the day.
- Max Boost: the most the exposure goes up, in f-stops (1 doubles the brightness).
- Adaptation: how long the exposure takes to follow the light in Play mode (dusk in a time-lapse, going into a cloud's shadow). In Edit mode it follows at once.
- Blue Shift: deep in the night, colours fade and turn blue, as the eyes see in the dark.
It works through the cameras' Post Exposure (Color Adjustments): the sky adds its own hidden global volume, which is never saved. The boost is added to the Post Exposure your volumes give where the main camera is, and the blue shift to their Saturation and Color Filter, so your settings still count. The cameras need Post Processing on. The header shows the boost now.
Night Sky
The night sky comes from two all-sky maps of the real sky (Textures/Night_Stars and Night_MilkyWay, in right ascension and declination). The sky turns them with the time of day, the date and the latitude, so the constellations rise and set where they really do: the galactic centre low in the south on a summer night in the north, the Southern Cross from the southern hemisphere.
- Stars: their brightness. Star Density: how many of the faint ones show. 1 shows all of the map's; less shows only the brighter ones, as under a hazy or a city sky; more brightens the faint ones. The brightest always show.
- Twinkle: each star twinkles on its own, more near the horizon.
- Milky Way: the brightness of its glow and dust lanes.
- Airglow: the darkest the sky gets.
- Light Pollution: a town's lights at night. A warm glow lies low in the sky all around, the clouds' bases are lit from below, and the scene's ambient light and mist get warmer. It comes on at dusk and hides the fainter stars. 0 is a dark site, 1 the edge of a city, 2 its centre.
Shooting stars, satellites, airplanes and the aurora each have a box with a switch in its header. Switched off, they don't show, and their settings are kept (greyed out). Switched on while their amount is 0, they get a starting one, so they show at once: a Frequency of 0.1 for the shooting stars, an Amount of 0.3 for the satellites and 0.2 for the airplanes, a Brightness of 1 for the aurora. The shooting stars are on by default, the others off.
Shooting Stars (on by default): meteors streaking across the night sky, mostly heading down. Each one flares up as it enters and streaks on, slowing a little. The path behind it glows as a tail that grows and cools from the head's colour to the tail's. Towards the end the tail draws back into the head, which flares one last time and goes out last.
- Frequency: 0 is none, 0.1 about one every half minute where the camera looks, 0.2 (the default) about twice as many, 1 a meteor storm.
- Brightness.
- Head Colour and Tail Colour: warm white by default.
- Length, Width and Duration: each meteor's is picked at random between the two values. Length is how far it streaks (degrees of sky), Width how thick it is (arcminutes; thinner than a pixel draws it fainter rather than thinner), Duration how long it lasts (seconds).
- Head Size: how big each meteor's head is against its streak's width, picked at random between the two values (0.05 to 1.5 by default). 1 is a bright point a little wider than the streak; more makes a larger fireball, its glow larger too; less a dimmer head.
Satellites (off by default): points of sunlight crossing the sky slowly and steadily. They shine only while the sun still lights them, above the earth's shadow: many in the first hours after dusk and before dawn, few or none in the middle of the night. Most are faint; a few are as bright as the brightest stars.
- Amount: 0 is none (the default), 1 up to 24 above the horizon at once, most of them low.
Airplanes (off by default): airliners at cruising height, seen only by their lights: red on the left wingtip, green on the right, white at the tail, a red beacon blinking about once a second and white strobes flashing twice every second or so. One passing overhead crosses the sky in a few minutes.
- Amount: 0 is none (the default), 1 up to eight in the sky at once, most of them far away and low.
Shooting stars, satellites and airplanes show only at night, come from the sky's clock (a recording or a Timeline shows the same ones every time) and are hidden by the clouds.
Aurora (off by default): the northern or southern lights. Curtains of light hang some 100 km up, in arcs along an oval around the magnetic pole. Each curtain is green from its sharp lower border up, breaks into vertical rays, and turns red towards its top; the bright stretches have a thin pink fringe along their border, and a diffuse red glow lies above the arcs. The curtains fold and curl, drift and ripple, and stretches of them brighten and fade. They are brightest where the eye looks along them, edge-on, as at their folds. They are drawn as smooth geometry over the sky, so they stay sharp and steady at any resolution, and they show in the scene's reflections and ambient light and in an exported HDRI too. The air near the horizon dims and reddens them, and the clouds hide them. They show towards the pole: the north one at a northern Latitude, the south one at a southern.
- Brightness: 0 for none to 1 for a bright display (up to 4).
- Placement:
- Real: place them as the real aurora is, in the oval around the magnetic pole (taken at the geographic one), from the scene's Latitude and the Activity. They are then out of sight at lower latitudes. Off (the default), they stand at the Height below.
- Height: how high the curtains' lower border stands above the horizon towards the pole, in degrees (90 is overhead), wherever the scene is (Real off).
- Activity: the sun's activity: a livelier display, brighter, with taller curtains and a wider glow above them. With Real on, how far from the pole the oval reaches too. At 0 (quiet) it is overhead at latitude 68, and seen low towards the pole down to about 60. At 1 (a great storm) it is overhead at 45, and from farther away mostly its red glow shows, low towards the pole.
- Direction: turns where the display lies around the horizon, in degrees clockwise from the pole's direction (0 is towards the pole). It turns Real's oval too: it brings the aurora into a view without changing the scene's North.
- Span: how far across the sky the curtains reach, in degrees of azimuth, roughly as seen from the camera. Their ends fade out. Over 160 they reach on around the oval, all of it at 360: seen from outside the oval (always the case without Real), its far side lies low or below the horizon; from inside it (with Real on, nearer the pole than the oval), the curtains reach all around the sky.
- Shape:
- Arcs: how many arcs of curtains stand side by side, 1 to 6 (3 by default). The first is where the display is placed; the others stand in turn beyond it (towards the pole) and before it, each fainter.
- Arc Spacing: how far apart the arcs are, in km.
- Curtain Height: how tall the curtains stand above their lower border, in km (150 by default). The Activity changes it a little: lower when quiet, taller in a storm.
- Folds: how much the curtains fold and curl. 0 gives straight arcs.
- Fold Size: the size of the folds, in km: how far apart their bends are along the curtains, and how deep they go.
- Look:
- Lower Colour and Upper Colour: oxygen's green at the bottom, and its red towards the tops and in the glow, by default.
- Fringe and Fringe Colour: how strong the thin fringe along the lower border of the bright stretches is, and its colour (nitrogen's pink by default).
- Rays: how strongly the curtains break into vertical rays. 0 gives smooth bands; bright rays reach higher than the rest.
- Ray Density: how many rays. More gives finer ones, closer together.
- Glow: the diffuse red glow above the arcs (in the Upper Colour).
- Motion:
- Speed: how fast the curtains move, with the sky's clock, so a recording or a Timeline shows the same aurora every time.
- Pulse: how much stretches of the curtains brighten and fade over time. 0 keeps them steady.
- Seed: another arrangement of the folds, the rays and the bright stretches.
On moonless nights the clouds are lit faintly by the night sky's own glow (the airglow, and the aurora's while it stands above the horizon), so they show as dark shapes against the stars.
Scene Lighting
- Environment Lighting: the scene's reflections and ambient light from the sky as it is now. Objects lit by baked probes or lightmaps keep their baked light. The Lighting window's Intensity Multiplier (Environment Lighting, Source: Skybox) scales the sky's ambient light as it scales Unity's own; the scene's own ambient light comes back unchanged when the sky stops.
- Set Skybox: make this sky the scene's skybox.
- Sky Material: the skybox material it sets (Materials/M_DropInSky by default). It must use the Drop-In Sky shader. With another material, such as Unity's Default-Skybox, the skybox shows that material, without the sky's clouds, sun and weather, while Environment Lighting still lights the scene and its reflections with the sky's own; the Inspector warns and puts the sky's material back in one click. To use another skybox, turn Set Skybox off and set it in the Lighting window, and Environment Lighting off too for the scene to be lit by it.
- Exposure: the sky's brightness, without changing the sunlight.
- Altitude (m): the scene's height above the sea.
- Export HDRI… opens the HDRI export (below).
Exporting an HDRI
Tools > Havoila Studio > Drop-In Sky > Export HDRI… (or the button in Scene Lighting) saves the sky as it is now as a latitude-longitude EXR panorama, in linear HDR, from the main camera's place. It holds the atmosphere with the fog of the sky, the clouds, the stars and, with Sun Disk, the sun's and the moon's disks, the sun's as bright as the sunlight it gives, so the HDRI lights a scene as the sun did.
- Resolution: 1024 to 8192 wide (twice the height). Up to 4096 it is saved in 32-bit float, at 8192 in 16-bit float.
- Cloud Detail x2 renders the clouds at twice the sky's resolution for the export, and Cloud Samples averages several renders of them (less noise).
- Saved inside the project, the EXR is imported as a cubemap (Latitude-Longitude layout), ready for a skybox or a reflection probe. It follows Unity's panorama layout, so Skybox/Panoramic reads it the right way round too.
Quality
- Clouds: the cloud map's resolution and march steps (Low, Medium, High, and Ultra: twice High's resolution, the clouds' edges and the high clouds' streaks sharper, for screenshots, cinematics and fast GPUs; some 3.5 times High's time for the clouds, and 84 MB of video memory for its cloud maps, 63 MB more than High's), Update Spread (every frame, or the clouds rendered over 2, 4 or 8 frames for less time per frame), and Draw Distance (km, 160 by default).
- Two switches for more realistic clouds, off by default, each for more GPU time:
- Detailed Lighting: finer lighting. The billows shade each other, the crevices between them are darker (the cloud nearby hides the sky's light), and the edges are darker where the sun lights the side facing the camera. About half as much time again for the clouds.
- Detailed Shapes: cauliflower clouds. Finer billows show on the billows, down to some 10 m, and wisps swirled by turbulence (curl noise) hang near the clouds' base. About 30 % more time for the clouds. Thin clouds (a low Density) let the eye see into them and look soft whatever their shape: use a Density of 1 or more for firm cumulus.
- Fog: Low, Medium or High (screen tiles of 16, 10 or 8 pixels and 48, 64 or 96 depth slices). The scene's shadows in the air are read up to 2, 4 or 8 times along each slice, one read every 2 m or so: smooth shafts from trees and rocks, with no blotches that crawl as the camera moves.
- Soft Shadows (Off, Low, Medium, High; off by default): the sun's and the moon's shadows as soft as real ones. The light comes from a disk about half a degree across, not from a point: a shadow is sharp where an object meets the ground, and its edge widens by about a centimetre for each metre between them. The long shadows of a low sun blur toward their tips, and those of thin things, such as a palm's trunk, lose their dark core after a few tens of metres. The width is physical by default (the real sizes of the sun and the moon, not the disks drawn in the sky); the quality sets how many samples are taken. Softness scales how fast the edges widen with distance (1: the real sun; 2 or 3 for the softer shadows of a hazy low sun; under 1 for sharper ones), and Max Blur caps how wide an edge may grow, from fully lit to fully dark (2 m by default; wider edges are found and filtered in coarser parts of URP's shadow map). Fade (off by default) makes shadows fade out with their distance from what casts them, between the two distances of From – To (60 to 200 m by default), as haze in the air between them fills them with light: the far ends of a low sun's long shadows disappear. Shadows of nearby things (a bench, a rock) keep their full strength. They need URP's Screen Space Shadows renderer feature on the renderer, which the shaders read the shadow from: the Inspector warns when it is missing and adds it (Add Screen Space Shadows to the Renderer). Set back to Off, the Inspector offers to remove it (Remove Screen Space Shadows from the Renderer): without Soft Shadows it only resolves URP's own shadows on screen, and costs a depth prepass. They apply to opaque objects drawn with URP's shaders (Lit, Simple Lit, Complex Lit, Terrain, SpeedTree, Shader Graph, deferred lighting); transparent objects keep URP's shadows.
- Recording, with its Mode (Automatic, Always, Never) and Samples: every frame complete in itself, for videos (section 11).
Clock
- Source: what the sky's clock follows (section 9).
- Game: the game's time; in Edit mode, the editor's.
- Custom: a time your script sets. Nothing moves it on by itself: while nothing sets it, the time of day, the clouds, the rain and snow and the weather stand still, in Play mode too.
- While a Timeline drives the clock, the section shows it.
Events
UnityEvents for Dawn, Sunrise, Sunset, Dusk, each Hour and each Day, in Play mode. They fire as the time of day moves, by itself, from a script or from a Timeline, and also when the time jumps.
7. Presets and weather cycles
A Sky Preset is an asset holding a whole sky.
- It holds the Time of Day (the hour, the date and the place), the Sun, the Atmosphere, the Clouds, the High Clouds, the Weather, the Fog, the Moon, the Night Exposure and the Night Sky.
- It leaves out Scene Lighting, Quality, the Clock and the Events; what belongs to one scene (the sun's and the moon's lights and their Drive Light, the Wind Zone, the thunder's sounds, the layers); and the Time of Day's own switches (Time of Day, Computer's Clock, Time Passes).
- Create one with Save… in the Inspector, or Create > Havoila Studio > Drop-In Sky > Sky Preset. Save… also takes an image of the Scene view, without its gizmos, for the Presets list: frame the view before you save. The image is the preset's Thumbnail, and any texture can take its place. A preset with no Thumbnail shows a small render of the sky alone.
- Saving over a preset keeps it for what uses it (a Weather Cycle, a Timeline clip).
- Use Preset Time, in the Presets section and in the Scene view overlay, takes the sky to the preset's hour, date and place. Turn it off to keep your own time: presets then bring only their look, from the Inspector, the overlay and
ApplyPresetorBlendToPresetalike. It's on for a sky added in the editor and off in a scene made before 1.1.1, and it'ssky.usePresetTimefrom a script (off for a sky added by a script in a build). - In a blend, the hour goes the short way round the clock, and the place and the date slide (the date the short way round the year, the year at the end); the stars and the real moon keep the first date until the end, moving on with the hour. The clouds keep their pattern: a blend leaves the sky's Seeds as they are (
ApplyPresettakes them). The distances of the clouds' shadows, the far shadows and the splashes come at the end. With Time Passes on, the time holds during the blend, then goes on from the preset's hour. In Play mode, a jump past a sunrise or a sunset raises those events. - Weather Cycles and Timeline's Sky Preset track take all of a preset but its time and its seeds, so a change of weather never moves the sun or swaps the clouds; on Timeline, the Time of Day track sets the time. A sky on the Computer's Clock, or with Time of Day off, keeps its time too.
- Presets saved before 1.1.1 hold less, in groups, and work as they did: they keep the sky's time. Save one again to make it whole.
From a script:
sky.ApplyPreset(preset); // at once
sky.BlendToPreset(preset, 30f); // over 30 seconds (Play mode; follows the sky's clock)
Sky Weather Cycle
Add it with Add Weather Cycle in the Weather section. It moves the sky from preset to preset, by itself, in Play mode:
- Sky: the sky it drives. None: the one on its GameObject, else the scene's.
- Weathers: presets with a Weight (how often each comes). It starts with the built-in presets, from clear to stormy: fair, scattered and cloudy skies most often, clear and overcast less, stormy least.
- Spell Length: minutes of the sky's clock a weather lasts on average, from a third of it to one and two thirds.
- Change Time: minutes a change takes.
- Seed: another succession of weathers.
The weather comes from the sky's clock and the seed only, never from what came before. The same clock always gives the same weather: in a recording, with a Timeline, in a saved game, and for every player of a multiplayer game sharing the clock. The Inspector shows the weather now and when the next change begins. Between changes, you can still adjust the sky by hand.
A change blends from one preset to the next, all but the time of day and the seeds. Presets saved before 1.1.1 blend their groups only: give those of a cycle the same ones.
8. Weather on your materials
The sky publishes the weather for your shaders: rain and snow falling, how wet the ground is and how much snow lies. The ground is as wet and white as Weather's Ground sets it, and rain and snow add to that over Wetting Time and dry or thaw after (From Rain and Snow).
Shader Graph
Add the Drop-In Sky Weather sub graph (Havoila Studio > Drop-In Sky) between your material's values and the Master Stack:
| Input | |
|---|---|
| Base Color, Smoothness, Normal | Your surface's values (Normal in tangent space; leave it at (0, 0, 1) without a normal map). |
| Porosity | How much water it soaks up, darkening it. 0 for metal, glass and plastic, 1 for soil, cloth and rough wood. |
| Puddles | How much water its flat parts gather once soaked. 0 for roofs and walls, 1 for the ground. |
| Snow | How much of the lying snow settles on it. Faces turned up take it first. |
Its outputs, Base Color, Smoothness and Normal, go to the Master Stack.
- A wet surface gets darker (by its porosity) and glossier.
- Once soaked, flat ground gathers puddles, with rings where the raindrops fall.
- Snow covers what faces up first, then steeper faces as it gets deeper, with a broken edge.
- Without a sky, the sub graph leaves the surface as it is.
Demo/Shaders/Weathered Lit is a ready example: URP Lit with a Base Map, a colour and the three weather sliders.
The Drop-In Sky Cloud Shadow sub graph gives the sunlight the clouds let through at a point (0 to 1). It is for shaders that do not read the sun light's cookie, such as grass, particles and custom lighting.
HLSL
Include Shaders/Include/DropInSky.hlsl after URP's Core.hlsl:
#include "Assets/HavoilaStudio/DropInSky/Shaders/Include/DropInSky.hlsl"
// albedo, smoothness, normalTS: in and out; porosity, puddles, snow: 0..1
DropInSkyWeatherSurface(albedo, smoothness, normalTS, positionWS, normalWS, porosity, puddles, snow);
// or with a Wet Gloss (0..1): how much of the rain's gloss the surface takes (puddles apart)
DropInSkyWeatherSurface(albedo, smoothness, normalTS, positionWS, normalWS, porosity, puddles, snow, wetGloss);
float cloudShadow = DropInSkyCloudShadow(positionWS);
Limits
Surfaces under a roof get wet too; the sky cannot tell what is sheltered. Pass 0 as Puddles and Snow there, or scale them by a mask of your own (vertex colours, a texture).
A surface whose wet film beads up or soaks in (leaves, grass, sand) looks like a mirror of the overcast sky with the full gloss of the rain. In HLSL, pass a Wet Gloss below 1 (0.15 to 0.4) to keep it darker and only a little glossier; puddles keep their own gloss. The sub graph has no Wet Gloss: give such surfaces a Puddles of 0 and a lower Porosity.
The weather costs little where there is none: the puddles' and the snow's noise is worked out only where the ground is soaked or snow lies.
9. Scripting
What the Inspector shows is in public fields of the DropInSky component (namespace HavoilaStudio.DropIn.Sky), but for the Sky Material (sky.Material) and the sun's Shadow Intensity (its light's own Shadow Strength). DropInSky.Active is the sky in use.
var sky = DropInSky.Active;
sky.time.timeOfDay = 18.5f; // hours
sky.AdvanceTime(0.25); // a quarter of an hour on (the date and the moon follow)
sky.weather.precipitation = 0.8f;
sky.clouds.coverage = 0.9f;
float sunHeight = sky.SunElevation; // degrees
bool night = sky.IsNight; // the sun more than 6° below the horizon
float phase = sky.MoonPhase; // 0 new, 0.25 first quarter, 0.5 full
float eclipse = sky.SolarEclipse; // how much of the sun the moon hides here (0..1)
float red = sky.LunarEclipse; // how much of the moon is in the earth's umbra (0..1)
float boost = sky.ExposureBoost; // the Post Exposure the night exposure adds now (f-stops)
SkyAstronomy.Compute(sky.time) gives where the sun, the moon and the stars are for any time, with the eclipses then, without changing the sky.
HDRI at runtime
var panorama = new RenderTexture(4096, 2048, 0, RenderTextureFormat.ARGBFloat);
sky.RenderPanorama(panorama, sunDisk: true, cloudSamples: 8);
It renders one frame first, from the main camera's place (or the camera you pass as from), for the sky to be up to date there, and costs a few times the sky's usual frame. cloudDetail renders the clouds at a multiple of the sky's resolution.
Preset previews
var preview = new RenderTexture(256, 144, 24);
sky.RenderPresetPreview(preset, preview, timeOfDay: 14f);
It renders how the sky looks with a preset (the sky alone, looking away from the sun), then puts the sky back as it was, nothing changed on screen: thumbnails for a preset picker in your game's menus.
The clock
The clouds drift and change with the sky's clock, ClockTime (seconds). In Play mode, the time of day and blends to presets move on with it too. With the Game clock and the time of day on, the clouds stand still while Time Passes is off; a Custom clock moves them as you set it.
- With the Game clock it follows
Time.time. - Setting
ClockTimeswitches the clock to Custom, and the sky is then the same whenever this time is the same. Use it for multiplayer (a synchronised network time: every player sees the same clouds and the same weather) or for replays. DriveClock(seconds)drives the clock for one frame. Timeline's Time of Day track uses it. When the calls stop, the sky's own clock comes back.CloudClockTimegives the clouds a clock of their own (seconds;null, the default, followsClockTime). For a time-lapse, run it as fast as the hours go by: the clouds race across the sky while the stars, the night sky and the weather keep the sky's clock. It is not saved with the scene.
Events
sky.Sunrise += () => lampPost.enabled = false;
sky.Dusk += () => lampPost.enabled = true;
sky.HourChanged += hour => Debug.Log($"{hour}:00");
Dawn, Sunrise, Sunset, Dusk, HourChanged and DayChanged fire in Play mode. Dawn and dusk are when the sun crosses 6° below the horizon (civil twilight); sunrise and sunset are when its disk crosses the horizon. The same events are UnityEvents in the Events section.
Save and load
string json = JsonUtility.ToJson(sky.GetState());
// ... later
sky.SetState(JsonUtility.FromJson<SkyState>(json));
The state holds:
- the time, the date (with its year) and the moon's phase;
- the look: atmosphere, clouds, fog, the weather (rain or snow, lightning), the sunlight's intensity and the exposure;
- how wet and white the ground is;
- the clock, if it is Custom. With the Game clock, the clouds go on from the game's time.
Weather and lightning
WetnessandSnowCover(0 to 1) tell how wet the ground is and how much snow lies: Weather's Ground (weather.groundWetness,weather.groundSnow), and what falls adds (weather.groundFollowsFalling).RainFallingandSnowFalling(0 to 1) tell how much rain and snow fall now: Weather's Precipitation and its snow share, 0 with Weather off. They are the sky's, everywhere, not only beneath its clouds.WindRotationis the clouds' wind as a rotation: level, its forward pointing where the wind blows to. The sky turns its Wind Zone so.LightningFlash(0 when nothing flashes, about 1 at a strike's brightest) andLightningDirectionlet you flash your own lights with the lightning.
10. Timeline
With the Timeline package installed, two tracks bind to the sky (Havoila Studio > Drop-In Sky):
- Time of Day: each clip goes from a start time to an end time of day, with a speed for the clouds (for time-lapses). The sky's clock follows the track, so scrubbing back shows the same clouds. The track's Cloud Clock Start (seconds) sets the clouds' clock at the timeline's start: another value gives other clouds.
- Sky Preset: each clip applies a preset. Overlapping clips blend.
The clips are named after what they do, for example "06:00 → 18:00 · clouds ×60" or the preset's name.
11. Recording videos
The clouds are normally rendered over several frames and blended with earlier ones: smooth, and cheap. A recording needs each frame complete in itself instead, with no trails even in a fast time-lapse.
- Recording (Quality section) does this:
- the clouds are rendered whole several times per frame (Samples) and averaged;
- the ambient light is that of the frame.
- Automatic switches it on in Play mode while Unity Recorder captures (anything that sets
Time.captureDeltaTime). Always keeps it on. - It costs Samples times the clouds' time per frame.
12. For other assets: the published values
The sky publishes global shader properties for other assets, so they can use it without referencing its code. Drop-In Water reads them, and so do the park's shaders in the demo (Demo/Park/Shaders: ParkSkyFog.hlsl for the fog, Park Water for the environment). Each is valid while its …Params.x is 1 (the mist's, while _HavoilaSkyFogParams.x is 1 and its own x above 0).
| Property | |
|---|---|
_HavoilaSkyEnvironment, _HavoilaSkyEnvironmentParams |
The sky's environment cube (clouds and the fog of the sky included, no sun or moon disk), mips filtered for roughness like URP's probes, linear HDR. Published while Environment Lighting is on. |
_HavoilaSkyFog, _HavoilaSkyFogMatrix, _HavoilaSkyFogParams |
The fog volume (rgb in-scattered light, a transmittance), for transparent shaders to fog themselves. Valid while the camera draws its transparent objects. The matrix takes a world position to the camera's clip space (OpenGL-like, not jittered); the volume is read at uvw = (clip.xy / clip.w * 0.5 + 0.5, ln(clip.w / y) * z). Params y, z: the slices' depths (the first slice's, 1 / ln(far / first)); w: their number. |
_HavoilaSkyFogMist, _HavoilaSkyFogMistParams |
The mist, apart from the volume: Params x is its extinction at the world's y = 0 (1/km; 0 = no mist), y is 1 / its height (1/m), z is the floor it thickens down to (m). How much of it lies in front of a point is worked out along the point's own ray (a mist a few metres thick, seen from high up, is thinner than the volume's slices); the texture, laid out as the volume, gives its light (rgb). The comments of AtmosphericFog.cs and Shaders/Include/Mist.hlsl give the formulas. |
_HavoilaSkyFarShadow, _HavoilaSkyFarShadowMatrix, _HavoilaSkyFarShadowParams |
The far shadows of the main light (the sun, or the moon while it leads), while Fog > From Far Away > On the Scene is on (and the fog): a shadow map seen from the light, compared as URP's (SAMPLE_TEXTURE2D_SHADOW). The matrix takes a world position to its texture space (u, v, depth). Params y: the bias to add to the depth (towards the light); z: how far above a point to read it (m: its texels are metres to tens of metres tall). For transparent shaders beyond URP's shadow distance: Drop-In Water's sun glint is gone there behind a ridge at sunrise. |
_HavoilaSkyWeather |
x: rain falling, y: snow falling, z: how wet the ground is, w: how much snow lies (0 to 1). _HavoilaSkyWeatherParams.y: how far raindrops are seen landing (m, the Splash Distance); .z: how many splash (the Splash Amount). |
_HavoilaSkyCloudShadows, …U, …V |
The clouds' shadow map (r: the sunlight let through, 0 to 1) and its mapping: uv = (dot(float4(positionWS, 1), U), dot(float4(positionWS, 1), V)). _HavoilaSkyCloudShadowsParams.y: the strength the map was made with (its darkest is 1 - y), while it is also the sun light's cookie (0 when it is not). A shader can take it back out of the cookie where the sun's disk itself shows: Drop-In Water does, so the sun's glint is gone under a thick cloud. |
The sky reads one property that water can publish (Drop-In Water does), so rain and snow stop at the water's surface, and the lens flare is not drawn for a camera under it:
| Property | |
|---|---|
_HavoilaWaterHeights, _HavoilaWaterHeightsParams |
A map of the water surface's height around the camera, seen from above (r: height in m, below -10000 where there is no water). Params x, y: world x, z of the map's corner; z: 1 / its span (m); w: 1 while valid. The lens flare reads it on the CPU, when it is a readable Texture2D. |
The Visual Engine
With BOXOPHOBIC's The Visual Engine (TVE 22.x, sold separately) in the project, its vegetation and props can follow the sky. Tools > Havoila Studio > Drop-In Sky > The Visual Engine Bridge adds the The Visual Engine Bridge component to the active sky (the item is greyed out without TVE or a sky). Every frame, in Edit mode too, it drives TVE's manager:
| Row | TVE's setting | Follows |
|---|---|---|
| Wetness | Wetness | the sky's wet ground (Wetness): its own Wetness, wetter while it rains, drying after |
| Snow Overlay | Overlay | the snow lying (SnowCover). TVE's overlay is snow on most materials: turn the row off if yours is not |
| Rainfall | Rainfall | the rain falling (RainFalling) |
| Wind Power | Motion Control | the clouds' wind speed: about 11 m/s gives 0.5 (Windy), 23 m/s gives 1 (Strong), times the bridge's Wind Strength |
| Wind Direction | Main Wind | the clouds' wind: the sky's Wind Zone if it has one, else TVE's manager, turned to the wind |
| Season (off by default) | Season Control | the sky's date: winter at the winter solstice, spring at the spring equinox, summer at the summer solstice, autumn at the autumn equinox; six months on south of the equator |
- A row switched off gives TVE its own value back, and so does disabling or removing the bridge. The bridge keeps TVE's own values with the scene, so a scene saved while it drives TVE (TVE's manager then holds the sky's values) still gets them back.
- TVE's materials show these only with their own features on (wetness, overlay, rainfall, seasons): that's TVE's material setup. Where TVE's atmo elements are painted, they take over on their layer, as TVE intends.
- Bright points that twinkle and glow on TVE's snow are TVE's own Sparkles: glitter on its materials, strongest on white snow, which the scene's Bloom makes glow. TVE draws them under its own lighting too. To tone them down, lower Sparkles Intensity on TVE's materials.
- TVE's wetness and rainfall are global, as the sky's rain is: under roofs too, unless TVE's atmo elements mask them.
- The bridge finds TVE by name, with no reference to it: without TVE the package compiles as before, and the bridge says it has nothing to drive. A
link.xmlkeeps TVE's manager whole in stripped (IL2CPP) builds. Tested with TVE 22.2 on Unity 6.3.
13. Performance
Measured at 1920 × 1080 on an NVIDIA GeForce RTX 5080 (Direct3D 12), in the Unity Editor 6.3 (Play mode), in the demo (DropInSky_Wild) at its Valley View viewpoint at 16:00, under the Fair Weather preset (a field of cumulus; the storm under Stormy): GPU time of each part, read from the sky's Profiler samplers (with Recorder.gpuElapsedNanoseconds).
| Low | Medium | High | Ultra | |
|---|---|---|---|---|
| Clouds (Update Spread: every frame) | 0.50 ms | 1.24 ms | 2.84 ms | 8.4 ms |
| Clouds, under an overcast and rain curtains (Stormy) | 0.49 ms | 0.98 ms | 1.93 ms | 6.9 ms |
| Clouds with storm clouds and their shade (Snow Storm) | 0.48 ms | 1.12 ms | 1.85 ms | |
| Clouds with Detailed Lighting | 1.89 ms | 4.38 ms | ||
| Clouds with Detailed Shapes | 1.60 ms | 3.84 ms | ||
| Fog (with shafts from the scene and from far away) | 0.30 ms | 0.46 ms | 0.77 ms | |
| Recording, 4 samples (instead of the clouds' usual time) | 4.8 ms | 12.1 ms | 41 ms |
The rest costs the same at every quality:
| Environment lighting: the cube, its filtering and the ambient light, and the fog of the sky drawn into it | about 0.1 ms |
| The clouds' shadows (the sun light's cookie) | 0.02 ms |
| The atmosphere's tables (only when the sun, the moon or the camera's height has moved) | 0.02 ms |
| The skybox | 0.02 ms |
| Far shadows On the Scene, over URP's 8192 × 8192 shadow map | 0.31 ms |
So the whole sky takes some 1.3 ms (Low), 2.2 ms (Medium), 4.1 ms (High) or 9.6 ms (Ultra clouds, High fog) of a frame here, the far shadows on the scene included. At night the clouds and the fog cost less (0.62 and 0.27 ms at Medium): the aurora adds about 0.2 ms when it is on, shooting stars, satellites and airplanes about 0.1 ms all together.
On the CPU, the sky's own work is about 0.2 ms of the main thread per frame, with hardly any memory allocated.
- On the Scene runs over URP's main light shadow map once per camera and frame: its cost follows the map's size (a quarter of the above at 4096 × 4096, a sixteenth at 2048 × 2048). Most of the map is decided from two of its four taps.
- The far shadows' maps are rendered again when the sun has turned by a quarter of their texels' height as seen 10 km away (about 0.005° at sunrise, so every frame or two of a day that passes in minutes, and less often with the sun high), when the camera has moved a tenth of the Far Distance, and every frame while recording. Each time, they draw the Far Casters' shadow casters once. In the demo's park (24 terrains and some 1,500 other casters), that takes about 1.3 ms, mostly the other casters' draw calls; the terrains alone take about 0.4 ms. Restrict Far Casters to the landscape in heavy scenes. In the Profiler, look for Drop-In Sky: far shadows.
- Every part has its sampler in the Profiler: Drop-In Sky: cloud map, cloud shadows, atmosphere tables, environment cube, environment fog, fog, far shadows, far shadows on the scene, aurora, aurora (environment), soft shadows.
- Drops, splashes and snowflakes cost too little to measure apart from the rest. Lightning costs a few operations in the sky's shader, only while a flash is on screen.
- Materials using the weather (section 8) work out the puddles' and the snow's noise only where the ground is soaked or snow lies: on a dry day they cost a few operations.
- The night sky's maps take about 32 MB of video memory on PC (the stars 8192 × 4096 in BC1, the Milky Way 4096 × 2048 in BC7, with their mips). Lower their Max Size in the import settings for smaller targets: the stars get softer, the Milky Way hardly changes.
- Moving objects (colliders on a Rigidbody) near the camera cost a few rays each per frame, on the main thread (one per half-metre cell they cover, 4096 at most), plus their splashes (a few dozen on a car in a downpour).
- Rain casts rays down around the camera when it has moved 3 m, or every 2 seconds: some 12,500 at the default Splash Distance, 25,600 at most. They run on the job system's worker threads, compiled by Burst, in under a millisecond; the main thread only uploads the result (under 0.1 ms).
- Soft Shadows, when on: some 0.5 to 1.5 ms at 2560 × 1440 (Low to High; more where many casters stand close together), on top of URP's Screen Space Shadows feature, which makes URP draw a depth prepass of the opaque objects (unless something else, such as SSAO, already does).
Profile a build on your target hardware for exact numbers.
To make it cheaper:
- Update Spread renders the clouds over 2, 4 or 8 frames. It costs a little latency in their changes.
- Detailed Lighting and Detailed Shapes off (Quality section): each costs GPU time for finer clouds.
- A lower Quality for the clouds and the fog: the fog's High reads the scene's shadows eight times per slice, for the smoothest shafts.
- A shorter Draw Distance for the clouds.
- Environment Lighting off, if the scene's lighting is baked.
- On the Scene off, or a smaller URP shadow map, if no mountain stands between your scene and a low sun.
- The fog off, for scenes without a far view.
- Soft Shadows at Low, or off.
14. Limitations
- Cameras stay below the clouds. The clouds are rendered as a panorama seen from the ground. Flying through or above them is not supported.
- Compute shaders are needed. Mobile and WebGL are not supported in this version.
- XR. The fog's volume is made once for both eyes, seen from the point between them: fog very close to the camera (under a metre) can differ slightly between the eyes. The lens flare is not drawn in the headset (a flare drawn on each eye's image does not sit where the eyes see the sun).
- One sky per scene. The last sky enabled is used.
- Rain and roofs. Rain and snow stop under colliders, not under meshes without them. Materials under a roof still get wet (section 8).
- Far shadows reach the scene within URP's shadow distance only. Beyond it, distant mountains shade the fog and Drop-In Water (it reads
_HavoilaSkyFarShadow), not the ground: URP's shaders read no shadows there. - Transparent objects are not fogged by the sky's fog, which is applied before them: URP's transparent materials and particles are drawn over it unfogged. Shaders can read the fog the sky publishes to fog themselves (section 12): Drop-In Water does, and the demo's Park Sky Fog (Demo/Park/Shaders/ParkSkyFog.hlsl) shows how. Close by it hardly shows; far away such objects look too clear.
- Thunder. No thunder sounds are included; give the sky your own clips.
- Rainbows are in the sky only. They show in the rain around the camera and in the distant curtains, over the sky, not in front of the scene's own hills.
- Soft Shadows soften what URP's shadow map holds: opaque objects drawn with URP's shaders, within URP's shadow distance (transparent objects, such as water and particles, keep URP's own shadows), on desktop and consoles but not OpenGL, and not in XR (the headset keeps URP's shadows). URP's Normal Bias thins the casters in its shadow map, more in its far cascades: very thin objects may cast no shadow there; lower the Normal Bias if they disappear. Where casters stand at very different heights around a point, their mean distance sets one edge width for all of them.
15. Troubleshooting
| Problem | What to do |
|---|---|
| No cloud shadows on the scene | Turn on Light Cookies in the URP asset (the Inspector warns when it is off in one the project uses, and turns it on). Check the clouds' Shadows. A cookie of your own on the sun light is left alone, and then the clouds' shadows are not set. |
| The scene is fogged twice | Turn off Unity's fog in Lighting > Environment. The Inspector offers to do it. |
| Nothing falls | Check that Weather is on and Precipitation is above 0. With the volumetric clouds on, rain and snow fall beneath clouds only (everywhere with them off). |
| The time of day, the clouds and the rain stand still in Play mode | The sky's Clock is on Custom and nothing sets it (setting ClockTime from a script, or a tool, switches it to Custom): set its Source to Game. The Wild demo of 1.0.0 and 1.0.1 was saved so. |
| The sky shows no clouds, but the reflections do | The Sky Material is not a Drop-In Sky material (Scene Lighting). |
| Rain falls through a roof | Give the roof a collider, on a layer of Stopped By. |
| Clouds leave trails in a video | Set Recording to Automatic (with Unity Recorder) or Always. |
| Changes in Play mode are lost | Unity restores the scene after Play mode. Save a preset (Save…) to keep a look. |
| The night exposure does nothing | Turn on the camera's Post Processing. A camera whose Volume Update Mode is Via Scripting only takes volume changes when your script updates it. |
| The lighting turns black, white with bloom, or far too bright when the sky is disabled or removed (and in material previews) | Known issue in 1.0.0: with Lighting > Environment > Environment Lighting > Source on Skybox and an Intensity Multiplier other than 1, the sky scales the scene's own ambient light again at every frame while it runs, until it is infinite. It does not show while the sky lights the scene. Keep the Intensity Multiplier at 1 while you use the sky. If it happened: set it back to 1, then Window > Rendering > Lighting > Generate Lighting. Fixed in 1.0.1, which also warns once in the Console about a scene ambient light that is not finite (NaN or infinite) and never brings it back. |
| The sky is black in a new scene | Check that the sky is enabled and Set Skybox is on, and that the camera's Background Type is Skybox. |
| Soft Shadows change nothing | Add URP's Screen Space Shadows renderer feature to the renderer (the Inspector offers to), and turn on Main Light shadows in the URP asset. The main light must be the sky's sun or moon. They are not drawn in XR or on OpenGL. |
| Some objects lose their shadows with URP's Screen Space Shadows on | Their shaders do not read screen-space shadows: add _MAIN_LIGHT_SHADOWS_SCREEN to their main light shadow multi_compile (as URP's own shaders have it). |
16. Support
- Email: support@havoila.com
- Discord: https://discord.gg/2ahVw3N9SX (the #sky-support forum, with the known issues pinned)
- Website: https://havoila.com
Please include your Unity and URP versions, your GPU, and a screenshot or short video of the issue. Tools > Havoila Studio > Drop-In Sky > Contact Support opens an email with the version filled in, and Documentation opens this guide.
17. Version history
1.3.0
- Clouds: their lighting is now matched to a physically based, path-traced reference of the same clouds, lit by the same sun and sky. Dense clouds are white where the sun strikes them, with grey bases, where they were an even grey; their light no longer drops as Density rises. Under an overcast the deck's underside is dark grey, lit by what comes through the clouds, where it was lit as if under an open sky (Stormy's deck came out two to three times too bright). Thin clouds with Detailed Lighting are a little darker than before (they were up to a quarter too bright). The settings are unchanged, but every scene's clouds look different after the update, and the sky's ambient light, the reflections and the mist under an overcast are darker with them. The clouds take some 8 % more GPU time than in 1.2.0 (RTX 5080, 1080p: 1.24 ms at Medium, was 1.15; 7 to 13 % by setting), and up to 0.2 ms more with storm clouds (their shade's map).
- Clouds: storm clouds shade the clouds around them. A storm's tower and its anvil take the sunlight from the clouds behind them, kilometres away, and from the ground's light on them, and the anvil's underside is lit from below by the sunlit cloud tops. Storm skies were up to twice as bright as they should be. Under a sun a few degrees above the horizon, with time passing, the edges of a storm's shade can flicker slightly as they sweep across the clouds; a shorter Draw Distance reduces it.
- Clouds: rain and snow curtains are lit as the clouds above them, dark under an overcast or a storm (they kept the light of an open sky and showed pale in front of the darker bases).
- Presets: Stormy, Stormy Evening, Snowy and Snow Storm have Multiple Scattering and Ambient back at 1 (they were 0.6, which made up for the old, too bright decks). A scene where one of these was applied keeps 0.6: apply the preset again, or set both to 1. If you raised Multiple Scattering or Ambient to brighten dense clouds, or lowered them to darken a deck, set them back to 1 first.
- Presets: the package's presets have new images, taken with the new lighting. Cloudy is more overcast (Coverage 0.755, was 0.43); Scattered has smaller, sparser clouds (Coverage 0.215, Size 3.1 km, Variation 0.87); Overcast is a morning sky (09:05, Density 0.72, a new cloud pattern), where it was a moonlit night.
- Presets: the Presets list draws again the images of your presets that have none of their own, with the new lighting; a preset saved with an image keeps it until saved again. Reflection probes, lightmaps and panoramas baked under 1.2.0 no longer match the live sky: bake them again.
1.2.0
- Clouds: a new look, crisp and sculpted. A cloud is now dense right inside a sharp outline, which Detail breaks up into billows on its sides and top and wisps near its base. Before, its edge faded over a wide band that the detail eroded, so small clouds came out as soft, grey blobs. The sky also reads the cloud map more sharply, without stair steps along the edges. With Detailed Lighting, sunlit sides are brighter and shaded sides and bases greyer, so the billows stand out. The settings and the presets are unchanged (Misty Dawn aside, below) and cover about as much of the sky as before (within some 3 points), but every scene's clouds look different after the update. Under a full overcast (Coverage 1, as in Stormy) the deck is more even, without its brighter, thinner patches. On an RTX 5080 at 1080p the clouds take some 10 % less GPU time than before (some 20 % less with Detailed Lighting), and 5 to 10 % more under a full overcast.
- Clouds: Detailed Shapes gives finer billows on the billows, and its curling wisps stay near the base (higher up they tore the clouds into streaks). It no longer thickens the clouds: a scene with it on has some 7 to 10 points less of its sky covered (raise Coverage to get them back). It takes some 30 % more time than the clouds without it (under 10 % before), so with it on the clouds cost 3 to 11 % more than before.
- Clouds: their shadows, the rain under them and the lightning's glow inside them follow about where the clouds are drawn, the small ones the detail breaks off included (softly, as on average).
- Lens flare: it also goes by the sky as drawn towards the sun, so the billows at a cloud's outline hide it too, and the high clouds and distant rain curtains dim it (it went by the clouds' shadows only).
- Moon: the tight glow around it, in the mist and the high clouds, grows with its Disk Size, as the sun's does: as it was at 1.5° (the default and the presets' size), smaller below, larger above. A large moon showed it as a small bright spot in the middle of its disk.
- Inspector: Storm Clouds' Anvil Spread is now called Top Spread: how far the storm clouds' flat tops spread downwind. The same setting: scenes and presets keep their values, and scripts still use
clouds.anvilSpread. - Recording: a frame recorded again comes out the same (the clouds' march took other jitters each time).
- Demo: a slider on the panel sets how long the presets take to blend in, 1 to 5 seconds.
- Clouds: Quality > Ultra, twice High's resolution: the clouds' edges and the high clouds' streaks sharper, for screenshots, cinematics and fast GPUs (some 3.5 times High's time for the clouds; its cloud maps take 84 MB of video memory, 63 MB more than High's).
- Presets: the Presets list draws again, with the new clouds, the images of your presets that have none of their own; a preset saved with Save… keeps the image it took (save it again for a new one). The package's presets have new images, Misty Dawn has thinner clouds (Density 0.06), and Cloudy leaves gaps of blue sky (Coverage 0.43, was 1).
- Presets: the package's presets come first in the Presets list and the Scene view overlay's menu, the others in the project after them by their folder (a sub-menu in the overlay). Another asset's presets or a video's no longer sit among the sky's.
- Presets: a blend to a preset (the demo's panel,
DropInSky.BlendToPreset) no longer ends with the clouds and the sun jumping. The clouds keep their pattern: a preset's Seeds come only when it is applied at once, since a seed cannot blend and switching it at the end changed every cloud in one frame. With Use Preset Time, the date now slides with the hour, the short way round the year: taken at the end, the sun jumped by the change of season (some 20° at 16:00 from a February preset to a June one). The stars and the real moon keep the first date until the end, moving on with the hour (sliding with the date, the moon whirled round the sky), and they no longer step back a day when the hour passes midnight. - Performance: a render with no camera in it no longer makes the sky work from the scene's origin. Unity makes one in every frame for a display that no camera draws to, such as the Game view while every camera draws into a texture. In every frame the sky then made its atmosphere's tables and its far shadows' maps for the origin, and again for the camera: in the demo's park, the far shadows' maps took some 1.3 ms each time, twice a frame. The sky looks the same.
1.1.1
- Presets: Save… now keeps the whole sky, with no group switches: all of it but Scene Lighting, Quality, the Clock and the Events, with the hour, the date and the place. It also takes an image of the Scene view for the Presets list, and a preset's Thumbnail can be any texture. Use Preset Time, in the Inspector and the Scene view overlay, keeps your own time instead: on for new skies, off in scenes from before 1.1.1. The presets are now a list in the Inspector that stays open (Presets, at the top): click from one to the next to compare them, the one applied last framed; the Scene view overlay's < and > go through them too. Six new presets: Golden Sunset, Misty Dawn, Stormy Evening, Starry Night, Snowy and Snow Storm. The nine from before are whole skies now too, each at its own hour, with a dim moon (Intensity 0.05). Presets saved before 1.1.1 work as they did, and their
applyswitches are gone from the Inspector; on a whole preset those fields do nothing. Weather Cycles and Timeline's Sky Preset track leave the time and the seeds alone. A Weather Cycle or a Timeline clip using the built-in presets now also changes the fog, the sun, the moon, the night sky, the Night Exposure and the Wind Zone: save presets of your own to keep yours. Presets have no description any more (descriptionstays for scripts that read it, always empty). - High Clouds: a Seed of their own, for another pattern with the same clouds below (0, the default, follows the Clouds' Seed, so existing scenes don't change). Both Seeds are sliders from 0 to 1000; a higher seed already saved stays until the slider is moved.
- Time: Time Passes now has In Play Mode and In Edit Mode, each with its own Day Length, and Clouds Speed for the editor, to see a scene's light and clouds through the day (off by default; on the Game clock). In the editor the clouds now stand still unless In Edit Mode is on.
- Mist: light scattered more than once. It no longer reads grey with the sun behind the camera, and thick mist turns white; a thin layer doesn't change. The rain's haze too.
- Mist: with a large Distance Scale, the sky no longer turns dark above the land where the mist is thick: the air in front of the mist now stays on the sky too, as it does on the land.
- Weather: the ground has a Wetness and a Snow Cover of its own (Weather > Ground): wet or white with nothing falling, a street after the rain or a winter landscape under a clear sky. With From Rain and Snow on (the default), falling rain and snow still add to them over Wetting Time and dry or thaw back to them; off, the ground is only what they say. Both are 0 in existing scenes and in the presets, which look as they did.
weather.groundWetness,groundSnowandgroundFollowsFallingfrom a script; save games keep them. - Sun: the tight glow around it, in the mist and the high clouds, grows with its Disk Size: as it was at 1.26° (the presets' size), smaller below, larger above. A large disk hid that glow and read as a flat white circle.
- Fog: behind thick clouds, the sun and the moon no longer show through as a bright spot. The mist's bright peak around them now goes with what the clouds leave of their light, and the moon's light in the air and the mist stops at the clouds (it ignored them).
- High Clouds: the sun no longer turns into a large white ball through them (from an Opacity of about 0.1). The ice's forward glow is now a tight glare a few degrees wide that fades out softly; the rest of the sky doesn't change.
- Shooting Stars: new defaults for a new sky: Frequency 0.2, Brightness 0.75, warm white heads and tails, shorter and thinner streaks (Length 5.4 to 12°, Width 1.5 to 2.5 arcmin) and smaller heads (Head Size 0.05 to 1.5). Existing scenes and presets keep theirs.
- Night Exposure: Night Brightness is 0.3 by default (it was 0.6), and in the Wild demo. Existing scenes keep their value.
- Inspector: Clouds > Shadows now comes first in Clouds.
- Frame Debugger: the sky gives the same events in each frame, so stepping through a frame no longer jumps between passes.
- Demo: the Wild scene's sky and light retuned, three Cloud Areas removed.
- README: the licence (the Standard Unity Asset Store EULA), and its line in each code file's header.
1.1.0
- The Visual Engine (BOXOPHOBIC, sold separately): a bridge drives its vegetation from the sky: wet in the rain, white under snow, swaying with the clouds' wind, and (on request) the season from the date. Tools > Havoila Studio > Drop-In Sky > The Visual Engine Bridge; see section 12. TVE is found by name: nothing changes without it.
- Scripting:
RainFallingandSnowFalling(the rain and snow falling now, 0 to 1) andWindRotation(the clouds' wind as a rotation). In Edit mode,WetnessandSnowCoverfollow a change of the weather at once (they gave the value of the last frame drawn). - Inspector: after a few days of use, a band under the header asks for a review on the Asset Store; Write a review opens the store page in your browser, its close button hides it for good.
- Fog: the air the clouds shade beneath them, towards a low sun, now dims the clouds as well as the sky between them (it lies in front of both). Before, the clouds stayed lit while the gaps between distant ones went dark and olive, and the gaps showed the cloud map's steps around the clouds. Clouds and reflections are a little darker there.
- Fog: far from the scene's origin, the clouds and the sky towards a low sun no longer break into blocks or stripes while the light shafts and the clouds' shadows are on: from a few kilometres out with a camera's near plane very close (a Scene view's 0.03), from some 100 km with any camera. The sky's directions were found from points just in front of the camera, where positions move in steps of millimetres out there.
- No more garbage every frame: the sky made 88 B a frame for the garbage collector (two three-value Mathf.Max calls in the shooting stars' settings). A frame of the sky now allocates nothing.
- Clouds: less flicker along their edges (the cloud map averages over more frames while the sky stands still, and takes a jump such as a preset at once), and no steps along their edges high in the sky. With Update Spread, a jump no longer lingers for a few frames.
- Mist: its droplets scatter the sunlight as water droplets do: half of it in a narrow peak around the sun, the rest in a softer glow. A light mist under a sun some 30° up no longer turns a large part of the sky white (Mist 0.2: under 8 % of the frame near white instead of 18.6 %). Mist Glow (Fog) sets how much of the peak shows: in full it turns a low sun seen through a long stretch of mist into a blazing disc, so by default (0.2) the mist keeps a fiftieth of it.
- Lightning: a bolt is seen through the fog of its own distance, as the land behind it is. Before, it took the fog of the sky behind it: in rain, a bolt a couple of kilometres away faded out halfway down and turned yellow in the haze up to the clouds' base, while far ones took none of the scene's air (Distance Scale).
- Light shafts: under a low sun, the shafts and the glow of the air around it no longer pulse while the sun moves (a time-lapse showed it most). The clouds' shadows were traced through the clouds at the same depths for every point, so as the sun turned they all slid through the clouds together; below some 12°, each point's depths are now offset a little, which the shadows' soft edges blur away.
- Lens flare: it fades in as the sun's disk rises clear of the land, and out as it sets behind it. Before, it took the sky itself for something in front of the sun near the middle of the view (within some 3° of it with a camera's far plane of 20 km or more) and stayed off while the sun stood there, then came on all at once; and a ridge hid it until the sun stood a degree and a half above it. The flare now stands on a hidden object of its own, far along the sun's direction from each camera, instead of on the sun light.
1.0.2
- Demo: the Wild demo's sky runs on the game's clock again. 1.0.0 and 1.0.1 saved it on a Custom clock, which nothing in the package moves on, so in Play mode its time of day, clouds, rain and weather stood still (in a copy of the demo: Clock > Source: Game).
- Rain and snow fall with the volumetric clouds off (another asset's clouds above, or none): everywhere, carried by the clouds' wind, which the Weather section then shows, and the ground gets wet or white as under clouds. Lightning, the rainbow and the distant curtains still need the volumetric clouds. A scene saved with the clouds off and Precipitation above 0 now gets rain or snow: set Precipitation to 0 there to keep it dry.
- The Inspector warns when the Sky Material is not a Drop-In Sky material, says how to use another skybox, and puts the sky's material back in one click. Its Clock section says that nothing else moves a Custom clock.
- Documentation: the Sky Material, the Custom clock, rain without the clouds, troubleshooting; Support's Discord server.
1.0.1
- Lighting: with the Lighting window's Environment Lighting on Skybox and an Intensity Multiplier other than 1, the scene's own ambient light no longer grows while the sky runs (it broke the lighting once the sky stopped: black, white with bloom, or far too bright). The multiplier scales the sky's ambient light as it scales Unity's own.
- Lighting: a scene ambient light that is not finite (NaN or infinite) is never brought back when the sky stops; the sky warns once in the Console and says how to repair it.
- Disabling or removing the sky gives the scene back the skybox it had.
- Ctrl+Z after Create Sky also undoes the skybox and the Sun Source.
- Save… (presets) saves in Assets, then where you saved the last one: no longer inside the package's folder, which an update replaces.
- The Inspector warns when URP's Light Cookies are off in a URP asset the project renders with (the clouds' shadows need them), and turns them on in one click.
- Demo: the lakes and the river take the sky's fog and mist (they showed through the haze unfogged). The seaplane's spray and wake and the North Fall's spray are prefabs. Demo script: ParkCreature.viewer is now Viewer, set with SetViewer().
- Documentation: transparent objects and the sky's fog, what was tested where (Unity 6.6, Direct3D 11, VR), the sun's units, the Profiler samplers, troubleshooting.
1.0.0
- First release.
- Known issue: with the Lighting window's Intensity Multiplier other than 1 (Source: Skybox), the scene's own ambient light grows while the sky runs and breaks the lighting once the sky stops. Keep the multiplier at 1; see Troubleshooting (section 15). Fixed in 1.0.1.