You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This sample puts multiple environment effects together in the same scene with different lighting conditions.

The scene includes examples focusing on the following effects:
- Volumetric Clouds: Demonstrates simple, advanced and manual mode.
- Lens Flare: How to update SRP Lens Flares data at runtime.
- Night Sky: How to add stars and northern lights.
- Time Of Day: Full 24h cycle with sun, moon and proper shadow map swapping.
More information on this on the Sample showcase inside the sample.
This PR changes slightly the behavior of atmospheric scattering, it now takes shadow map into account.
When making the PR, we realized it would be nice to take into account to wrap mode of the cloud texture (to clamp instead of automatic repeat some advanced or manual cloud map for example). We'll see if we have time to do it in this PR.
Docs has also been updated to exaplain visually what is a cloud LUT and cloud map in manual mode.


In an ideal world it would have been nice to include a snippet to update cascade of dir light at different intervals but a bug was found ([UUM-72086](https://jira.unity3d.com/browse/UUM-72086)) when including it and we need to wait until it's fixed before including it.
Copy file name to clipboardExpand all lines: Packages/com.unity.render-pipelines.high-definition/Documentation~/volumetric-clouds-volume-override-reference.md
| - **Cloud Map Resolution**| Specifies the resolution for the internal Texture HDRP uses for the cloud map. A lower resolution produces better performance, but less precise cloud type transitions. <br/><br/>This property only appears if you set **Cloud Control** to **Advanced**. |
32
32
| - **Cloud Map**| Specifies the cloud map to use for the volumetric clouds. For information on the format of this Texture, see [Cloud map and cloud lookup table](#cloud-map-and-cloud-lookup-table). <br/><br/>This property only appears if you set **Cloud Control** to **Custom**. |
33
33
| - **Cloud LUT**| Specifies the lookup table for the clouds. For information on the format of this Texture, see [Cloud map and cloud lookup table](#cloud-map-and-cloud-lookup-table). <br/><br/>This property only appears if you set **Cloud Control** to **Custom**. |
34
-
| - **Cloud Map Tiling**| The **X** and **Y** UV tile rate for one or more cloud map Textures. HDRP uses the **X** and **Y** values to tile the clouds across the sky.<br/>If **Cloud Control** is set to **Advanced**, this affects **Cumulus Map**, **Alto Stratus Map**, **Cumulonimbus Map**, and **Rain Map**.<br/>If **Cloud Control** is set to **Custom**, this affects the Texture assigned to the **Cloud Map** property.<br/><br/>This property only appears if you set **Cloud Control** to **Advanced** or **Custom**. |
34
+
| - **Cloud Map Tiling**| The **X** and **Y** UV tile rate for one or more cloud map Textures. HDRP uses the **X** and **Y** values to tile the clouds across the sky. When modifying those properties, cloud position is only maintained at the origin of the world (0,0,0). <br/>If **Cloud Control** is set to **Advanced**, this affects **Cumulus Map**, **Alto Stratus Map**, **Cumulonimbus Map**, and **Rain Map**.<br/>If **Cloud Control** is set to **Custom**, this affects the Texture assigned to the **Cloud Map** property.<br/><br/>This property only appears if you set **Cloud Control** to **Advanced** or **Custom**. |
35
35
| - **Cloud Map Offset**| The **X** and **Y** UV offset for one or more cloud map Textures. HDRP uses the **X** and **Y** values to offset the clouds across the sky.<br/>If **Cloud Control** is set to **Advanced**, this affects **Cumulus Map**, **Alto Stratus Map**, **Cumulonimbus Map**, and **Rain Map**.<br/>If **Cloud Control** is set to **Custom**, this affects the Texture assigned to the **Cloud Map** property.<br/><br/>This property only appears if you set **Cloud Control** to **Advanced** or **Custom**, or if you set it to **Simple** and then set **Cloud Preset** to **Custom**. |
36
36
| - **Density Multiplier**| The global density of the volumetric clouds. <br/><br/>This property only appears if you set **Cloud Control** to **Advanced** or **Custom**, or if you set it to **Simple** and then set **Cloud Preset** to **Custom**. |
37
37
| - **Shape Factor**| Controls the amount of shaping to apply to the cloud volume. A higher value produces less cloud coverage and smaller clouds. <br/><br/>This property only appears if you set **Cloud Control** to **Advanced** or **Custom**, or if you set it to **Simple** and then set **Cloud Preset** to **Custom**. |
@@ -112,6 +112,15 @@ For the **Cloud LUT**, the color channels represent:
112
112
113
113
When importing these two map Textures, disable **sRGB**. For best results, do not use any compression.
114
114
115
+

116
+
As a reference, here is the procedurally generated cloud LUT used for advanced mode. You can clearly see the 3 types of clouds (mid-altitude on the left, high altitude in the middle and cumulonimbus on the right).
117
+
Also, there is variations in the green and blue channels to specify more of less erosion and ambient occlusion depending on the cloud profile.
118
+
119
+

120
+
121
+
Here is an example cloud LUT that can be used in manual mode. On the top image, the LUT is divided into 8 32px wide parts, each representing a cloud type with a specific profile and altitude. (stratus on the left and cumulus on the right)
122
+
On the bottom left, the cloud map uses grayscale values to map which type of clouds is used. For exemple a radial gradient using thoses values creates a circular cloud as seen on the bottom right using the profile set on the cloud LUT.
123
+
For more examples, you can get the [environment samples](HDRP-Sample-Content.html#environment-samples) from the package manager.
124
+
115
125
**Note**: This cloud map is formatted differently to the cloud map that the [Cloud Layer](create-simple-clouds-cloud-layer.md) feature uses.
Copy file name to clipboardExpand all lines: Packages/com.unity.render-pipelines.high-definition/Editor/Lighting/Reflection/HDScreenSpaceReflectionEditor.cs
Copy file name to clipboardExpand all lines: Packages/com.unity.render-pipelines.high-definition/Editor/Lighting/VolumetricClouds/VolumetricCloudsEditor.cs
EditorGUILayout.HelpBox("One of the cloud map textures uses the clamp wrap mode, this wrap mode will be used for the global generated cloud map.",MessageType.Info);
Copy file name to clipboardExpand all lines: Packages/com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDGpuLightsBuilder.LightLoop.cs
0 commit comments