Lighting and integration
Water and fog in URP
Feed cloud reflections and fog into Kiwi Water in URP.
Cloudscape can supply a live reflection cubemap to a scene using the optional Kiwi Water package. In the same scene, Cloud Atmosphere can fog the opaque bed before the water draws. The water's scene-color transmission then carries that fog through the surface.
This workflow was checked in Unity 6000.6.0f1 with URP 17.6.0, Metal, Linear color, a full-viewport perspective camera and single-sample targets. It uses a Kiwi Water lake in advanced optical mode.
Connect the scene
- Configure the game camera for both packages. The camera needs Universal Additional Camera Data and an assigned Kiwi Water camera driver. On the Universal Renderer, place the Cloud Renderer Feature before the Kiwi Water Renderer Feature. Enable the URP depth and opaque textures.
- Enable Optical Mode, Advanced Optics and Scene Optics on the water material. For the first check, give environment reflections priority over other active reflection sources, so a probe or screen-space hit cannot replace the cloud capture.
- Place a disabled, full-viewport perspective source camera near the region where you want to capture the sky. Exclude the water layer from its culling mask. Add URP Reflection Capture and create a square, single-sample cubemap RenderTexture in a linear format, such as RGBA8 UNorm, with depth.
- Between camera renders, call
RenderCubemap(source, cube, 6). On success, setRenderSettings.defaultReflectionModetoDefaultReflectionMode.Customand assign the result toRenderSettings.customReflectionTexture. If capture fails, read the component'sDiagnosticand keep the current environment. For a round-robin refresh, update a separate staging cubemap and publish it only after all six faces succeed. Keep the published texture alive while it is assigned. Before releasing it, restore the previous environment if your integration still owns the assignment. - Add Cloud Atmosphere to the cloud layer and raise Fog Density with an opaque lake bed or shoreline in view. With the cloud feature first, the water pass reads the fogged background. Compare fog on and off at the same camera pose. Compare the cloud capture against a clear environment at the same fog setting.
The environment assignment affects the active scene. Coordinate it with other reflection or sky systems that manage the same setting. Cloud Atmosphere uses opaque scene depth, so the water inherits fog through transmitted scene color. Direct fogging of a later transparent water surface and cloud shadowing of its custom lighting need separate integration. The screen-space ground shadow feature targets opaque receivers.
See reflection captures for capture ownership and budgets, and Cloud Atmosphere for fog controls.
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.