Cloudscape Docs
View all packages

Lighting and integration

HDRP directional cloud cookie

Shade the HDRP directional sun with a cloud-transmittance cookie.

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

Add HDRP Directional Cloud Cookie to an active GameObject in an HDRP scene. Assign an active Cloud Layer, its enabled directional sun with HDRP Additional Light Data, and a supported reference camera. The component is opt-in. Its fixed light-space footprint is centered on the sun transform; it does not follow the camera. The cookie is regenerated at the selected update interval or after a floating-origin notification. Resolution is rounded to a power of two between 64 and 1024; samples are bounded from one to eight. Profile this work and HDRP's cookie-atlas updates on the target device.

The component declines an existing light cookie. It temporarily sets the sun's directional cookie dimensions and owns its generated texture. On disable or invalid configuration it releases resources and restores the original dimensions only if they still match its own values. If another system changes the cookie or dimensions, it preserves the external change and suspends; disable and re-enable the component to retry. Diagnostic exposes setup or ownership failures.

The generated RGB transmittance is intended for HDRP direct-light cookie sampling. HDRP may replace the sun cookie with its own cloud or volume system, and its atlas capacity, camera settings, light layers, custom shaders and baked or indirect lighting affect the result. Receivers inside or above the cloud layer are not represented accurately. The texture becomes neutral at the footprint edges. A focused Unity 6000.6 HDRP test covered direct lighting versus ambient and emission on the tested setup. Projection, atlas refresh, other rendering paths and performance still require validation in the target project.

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