Cloudscape Docs
View all packages

Lighting and integration

Reflection captures

Render clouds into planar and cubemap reflections in URP.

Cloudscape 26.11.0Unity 6000.0+Built-in · URP · HDRP

Add URP Reflection Capture to an active object. Call RenderPlanar(sourceCamera, target2D) for a prepared perspective reflection camera view, or RenderCubemapFace(sourceCamera, targetCube, face) for a cubemap face. Create the destination before the call. The component uses its own disabled cameras and the default URP renderer. The source supplies the culling mask, position and other camera settings; planar capture also uses its view and projection matrices. The call returns false and sets Diagnostic if its input is unsupported or no Cloudscape pass completed. It does not own the caller's destination.

Reflection cameras use their own cloud quality, independent of game cameras: Resolution divisor (default 2), View steps (default 24) and Light steps (default 2). This is the reflection budget; lower it for frequently updated probes. Culling mask further limits the layers rendered into reflections, on top of the source camera's mask. RenderCubemap(sourceCamera, targetCube, facesPerCall) updates one to six faces per call in a fixed order and continues from NextCubemapFace on the next call, so a full refresh can be spread over several frames.

Cubemap faces have separate camera histories, so alternating faces cannot reuse another face's cloud samples. Switching source cameras releases the previous histories. Disabling or destroying the capture releases all owned cameras and histories. This explicit workflow does not attach to Unity's native Reflection Probe cameras; use the capture's output deliberately in your reflection system.

Planar capture accepts standard, non-oblique perspective depth projection. A mirrored view matrix can be supplied through the source, but oblique clip planes, XR, orthographic projection, dynamic resolution, partial viewports and array or 3D destinations are unsupported. The source camera's renderer override, post-processing and native TAA are not copied to the owned cameras. Reflection captures render the highest-priority cloud layer only. Runtime render-request and cubemap-copy support varies by platform; check the return value and validate the target pipeline and graphics API.

Built-in and HDRP

Add Built-in Reflection Capture or HDRP Reflection Capture for those pipelines. They offer the same RenderPlanar, RenderCubemapFace, RenderCubemap and NextCubemapFace calls, the same reflection quality and culling-mask settings, and the same Diagnostic messages. Their owned cameras render through a Built-in Cloud Camera or the Cloudscape HDRP custom pass with their own histories; HDRP reflection cameras render without temporal anti-aliasing. Cubemap faces are rendered into a temporary 2D target and copied into the cubemap. A capture returns false when no cloud pass ran, for example when no cloud layer is visible. Reflection renders always use Fast Shapes, since their small, blurred images do not show the difference.

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.

Email supportJoin Discord

Cloudscape 26.11.0

Search documentation