Getting started
Profiles and API
Create Cloud Profiles, assign them to Cloud Layers and choose layers per camera with the public API.
The public namespace is KiwiStudios.Clouds. Create a CloudProfile asset and assign it to CloudLayer.Profile. CloudLayer.Sun selects the directional light; Priority chooses between active layers visible to a camera. The camera's culling mask must include the Cloud Layer object's layer. Layers participate globally across loaded scenes, including additive scenes; a Scene view can preview an enabled layer.
Select Cloud Layer to see its quality budget and use Inspect Cloud Profile to select the actual shared asset. Camera setup inspection checks a chosen camera's adapter configuration, culling/priority eligibility and supported mode. Results are cached; press Refresh after edits. This read-only check does not certify that a frame rendered or change settings for you.
Art direction presets
Import Art Direction Presets from Package Manager for five editable profile assets. Assign one to a layer to use the complete preset, or select your existing profile and use Copy a look to copy the preset's shape and lighting. The copy is an explicit, Undoable edit to each selected shared profile. It preserves base altitude, thickness, wind, custom noise, weather map and mapping, maximum distance and quality. Duplicate your profile first to keep a separate look. The preset library uses the included noise and no required maps. Scene light, sky, camera exposure and post-processing remain your own settings; adjust them together with the profile.
Shape
Form chooses how clouds are built. Cumulus (the default) creates separate rounded clouds from smoothly joined billows with flat bases and clear sky between them; neighbouring clouds can merge into clusters. Field uses continuous noise and suits overcast or wispy skies such as the Soft Overcast and Sunset Wisps presets. With Cumulus, ShapeScale sets the spacing between clouds (one cloud per half ShapeScale), Coverage sets how many cells contain a cloud, TowerHeight scales cloud height within Thickness, BillowStrength controls the rounded lumps on each cloud and BaseSoftness the fade at the flat base. Coverage maps and weather texture variation decide which clouds appear and their size. Profiles saved before this field existed open as Cumulus; set Field to keep the earlier continuous look.
BaseAltitude and Thickness are world-space metres. The Cloud Layer transform offsets altitude in Y and anchors the cloud field in X/Z. Coverage controls cloud occurrence; Density changes extinction. ShapeScale controls large forms, DetailScale the erosion frequency and Erosion edge breakup. Wind is world X/Z motion in metres per second. CloudProfile.Noise optionally overrides the included deterministic 3D texture. Custom shape textures use R for connected Perlin/Worley shape and G/B/A for inverted cellular noise at increasing frequencies (all channels normalized 0–1); use Repeat wrapping and Trilinear filtering. Included shape, detail and weather textures are immutable shared assets. The package destroys only generated recovery textures and preserves user-assigned textures.
BillowStrength adjusts the connected smaller forms, TowerHeight compresses tower heights within the layer, and BaseSoftness adjusts the lower edge. Their default values preserve the original field.
Assign WeatherCoverageMap to multiply procedural coverage by the texture's red channel: white leaves coverage unchanged and black removes it. Import it as a linear texture (disable sRGB), with filtering and Repeat or Clamp wrapping chosen for the intended edges. WeatherMapWorldSize sets the width and depth of one texture in metres; WeatherMapOffset shifts its centre from the Cloud Layer's X/Z position. The map stays anchored to the layer while the procedural cloud field moves with wind. WeatherMapStrength blends between no map effect and the full mask. A missing map leaves the original procedural weather unchanged. The map and any texture assigned by the user remain user-owned.
Enable CloudLayer.UseLocalBounds to restrict the layer to an axis-aligned rectangle centered on the layer's X/Z position. With the layer selected, the Scene view outlines the bounds at the cloud base and top, with a fainter inner outline where the fade begins; drag the handles to change width, depth and fade with Undo. LocalBoundsSize is the full width and depth in metres, and LocalBoundsFade fades density inward from each edge; zero gives a hard edge. Layer Y still offsets altitude. Rotation and scale do not alter these world-space bounds. Local bounds limit each layer independently. Editing the mask, bounds or their anchored position resets the camera's cloud history. With nonzero wind and an active map or local bounds, the fixed edges do not move with the clouds, so cloud history is kept at a weight of at most 0.6 and Spread Over Frames pauses; this limits trails at the edges with slightly more visible sampling noise than in open sky. Set wind to zero for full history weight with these controls.
Multiple layers
Opt into Render Second Layer on the URP Cloud Renderer Feature, the Built-in Cloud Camera, or the Cloudscape HDRP custom pass. It selects up to two eligible layers by priority and gives each a separate camera history. Their altitude ranges must not overlap. The renderer orders them per pixel against scene depth; each layer retains its own independently calculated lighting and does not cast cloud shadows on the other. This increases raymarching, history memory and composition cost; measure your target scene.
If more than two eligible layers are present, their altitude ranges overlap, the camera is orthographic, or a custom cloud shader is selected, Cloudscape reports the reason and renders only the highest-priority layer; the Built-in camera and HDRP pass also expose it as SecondLayerDiagnostic. Reflection captures render the highest-priority layer only. Disabling the option or a layer releases the corresponding histories. Camera layer masks and Scene view settings apply to both layers. URP and HDRP native TAA use each visible layer's own motion vectors.
Lighting
SunColor and AmbientColor are artist colors in sRGB; Cloudscape converts them once for a Linear project. Gamma projects retain the authored values. Extinction controls absorption per metre. The default, 0.007, gives cumulus and other thick forms solid bodies with crisp silhouettes. Layered decks (Field, Lenticular, Mammatus, Fallstreak and Wall Cloud) and toon looks read better at 0.0028, which turns overcast grey instead of charcoal; the sample profiles use it there. CloudProfile.RecommendedExtinction(form, stylization) returns the suggested value. SilverLining brightens sunlit rims; Anisotropy shapes forward scattering. Sun direction and light color come from the assigned directional light or the scene sun. Light intensity scales the cloud source from zero to one; use the profile's HDR Sun Color for additional artistic brightness.
Assign up to two point or spot lights in a Cloud Layer's Local Light A and Local Light B slots to illuminate that layer. Unassigned, disabled, inactive, zero-intensity, directional and culling-mask-excluded lights contribute nothing; assigning the same light twice counts once. Cloudscape uses the light position, color, intensity, range and spot cone with a smooth range cutoff and two density samples for approximate cloud self-attenuation. The contribution uses the light's numeric intensity capped at 32, and is not calibrated to pipeline-specific photometric units. It does not use scene geometry shadows, light cookies or baked lighting. A moving or changing local light resets that camera's cloud history, which can increase visible noise. Each active light adds work inside the cloud raymarch, so measure the actual scene and target hardware. The layer borrows assigned lights and does not modify or destroy them.
HDRP also exposes KiwiStudios.Clouds.HDRP.CloudCustomPass.Luminance, a physical cloud-radiance multiplier applied with HDRP exposure. Match it to your sky/exposure; the included gallery uses 15000 at fixed EV12. It is separate from shared profile color controls.
Quality
New profiles use Balanced settings: half width/height (ResolutionDivisor = 2), 48 view steps and 4 light steps, with MaxDistance = 35000 metres and HistoryWeight = 0.9.
ResolutionDivisor accepts 1 (full), 2 (half) or 4 (quarter width/height). ViewSteps is bounded to 16–128 and LightSteps to 1–8. Resolution and view steps control image detail and sampling cost; light steps control the folds and self-shadowing inside clouds. A lower-cost starting point is quarter resolution, 32 view steps and 2 light steps. Measure each choice at your actual target resolution; performance records the reference workloads.
HistoryWeight ranges from 0 to 0.98. Higher values reduce sampling noise; lower values respond faster to changes. Zero disables accumulation. Each camera owns its history. Cuts, profile swaps, sudden profile or light changes, resolution changes and interrupted rendering reset it; camera movement and wind use reprojection. Gradual changes, such as a Cloud Profile Blender or a weather transition moving a setting by up to 2 % per frame, keep the history. Newly visible areas may briefly show grain while samples accumulate. Native URP/HDRP camera TAA is a separate optional setting with its own cost; see setup. Built-in uses the shared cloud history without adding a native camera TAA system.
Fast Shapes (off by default) reads the billows of cumulus, pileus and hero clouds from a baked shape atlas of 16 cloud shapes instead of joining twelve billows for every sample. Each cloud keeps its own size, stretch and surface noise; up close, outlines are a little softer. With a half-resolution divisor, Fast Shapes march at quarter resolution on screens of about 4K and up (7 million pixels or more), so each cloud texel covers the same view angle as at 1080p. The Fast quality preset turns it on together with 40 view and 3 light steps.
Lean March (off by default) stops each ray once 95 % of the light is blocked, keeps only the coarsest billow octave, and shades from billow outlines without their small lumps. It is made for quarter resolution, where the skipped detail is smaller than one cloud pixel. The Fastest quality preset turns it on with Fast Shapes, quarter resolution, 24 view and 3 light steps.
Spread Over Frames (on by default) marches one pixel of every 2×2 block each frame, cycling through all four over four frames, and rebuilds the rest from the history. Once the history holds a few frames this costs about a third to a half of a full march; the first frames after a cut are marched in full. Clouds settle over a few more frames than without it, and fast changes such as lightning or quick profile blends show at the reduced update rate. It needs a History Weight above zero. It pauses while a coverage map or local bounds stays fixed under moving wind, and while the camera turns more than 0.02 degrees or moves more than 0.3 m per frame, resuming after four still frames, so pans and flights do not show a dot or crosshatch pattern. Its saving therefore applies to still and nearly still cameras.
Profiles sanitize nonfinite and out-of-range values through Validate() and Inspector edits. Call Validate() after scripted bulk edits if you need sanitized values before the next render.
Runtime changes to a shared profile affect every layer that references it. Instantiate a profile for per-instance runtime changes and destroy your owned instance when finished. The renderer owns its temporary targets/materials; callers must not destroy those resources. CloudLayer.Noise, DetailNoise and WeatherMap expose the selected shape, erosion and coverage/type/height resources for inspection; treat included resources as read-only.
Changing quality does not create a new weather system. Coverage transitions can be driven by your own interpolation. The core renderer does not modify directional lighting, scene weather, gameplay or global project settings. Optional time of day and weather effects components can control explicitly assigned scene components in Play mode.
Timestamped wind motion
Wind normally uses the legacy absolute simulation time multiplied by the profile wind. For continuous changes, call CloudLayer.BeginWindTimeline(time) and SetWindTransition(targetWind, time, duration) with the same simulation clock used by rendering. The timeline starts at the legacy position and integrates a linear velocity change; retargeting keeps position and velocity continuous. WindTimelineActive, WindTimelineGeneration and TryGetWindDisplacement expose state for a caller that owns the timeline. While active, the timeline controls movement; changing CloudProfile.Wind alone does not change it. Schedule every change before rendering its timestamp, and submit commands in nondecreasing time order. Rendering and history sample the same timeline without advancing it, so cameras can query retained times in any order.
The layer retains at most 128 command segments. Requests older than the earliest retained segment fail: Configure returns false, and CloudHistory.Prepare throws an ArgumentException. Failed or nonfinite commands do not change the timeline. Use one consistent clock domain; reset before switching clocks. Timeline state is runtime-only and is cleared when its layer is disabled or destroyed and on domain reload. EndWindTimeline() returns to legacy wind, which can change the cloud phase; it also resets camera history. Own and coordinate the timeline explicitly, using its generation to avoid ending a different owner's replacement. The weather controller does not currently schedule wind transitions.
Custom renderer integration
The included adapters manage CloudRendering, CloudHistory and CloudHistoryFrame for you. A custom adapter must own one CloudHistory per camera and use the same simulation time, raster view and raster projection for CloudRendering.Configure() and CloudHistory.Prepare(). The returned immutable frame supplies the read/write targets, reprojection data, jitter and reset state; call its Configure() on the draw's material or property block.
Submit the raymarch and temporal resolve writes before calling Commit(frame) exactly once. A stale, foreign or already committed frame is rejected. Do not retain a frame across owner resets or resize. Keep sampled history targets distinct from the current write targets.
Reset(reason) invalidates accumulation while retaining buffers. Release(reason) frees owned targets and permits later preparation; Dispose() also disconnects callbacks and permanently closes the owner. Release any adapter-owned wrappers when ReleasingResources fires, before the underlying targets are destroyed. Callers must not destroy or overwrite the owner's textures directly. CloudRendering.GetWorldDisplacement() describes constant-wind displacement; use the layer timeline for time-varying wind and pass the same simulation time to both rendering and history.
Still stuck?
Bring the sky with you.
Include the Cloudscape version, Unity and render-pipeline versions, operating system, graphics API, the Cloud Layer's camera setup inspection, relevant logs, and a minimal reproduction.