Customize Cloud Renderer
The renderer’s role is to draw based on the parameters that make up the scene, such as cloud shape, atmospheric color, and fog. By adjusting the renderer parameters, you can create a sky that adapts to various scenes. Understand how to adjust the renderer so that you can create the sky you want.
The renderer entity is a ScriptableObject. There are two types of renderers.
It is a renderer that can draw clouds close to physical behavior. It is a renderer suitable for operation in the linear color space and UniversalRP / HDRP environment. It is also designed to reduce the artifacts typical of ray marching.
The renderer included in Massive Clouds Version 4. You can apply various effects such as applying Ramp texture. However, since the lighting calculation is not consistent, the behavior in the linear and gamma color spaces is greatly changed, and it is difficult to adjust the parameters in the HDRP lighting environment.
This section does not deal with
Customize Physics Renderer
Physics Renderer can be found under the
Renderer/Physics folder. You can also create a new
Physics Renderer object.
Selecting a renderer will bring up a UI in the Inspector for adjusting renderer parameters. Here you can adjust lighting / skybox / clouds / atmospheric scattering / fog.
AtmosPadperforms dynamic environment control by dynamically controlling the parameters of this renderer, it is necessary to be careful to overwrite some of the renderer parameters.
Cloud Intensity Adjustment
- Fine-tune the effect of light hitting the clouds
- The light treated as the sun is usually set automatically, but you can also set the parameters manually.
- You can set the light when the sun is below the horizon. You don’t need to have a DirectionalLight in your scene. If the Transform which is treated as a moon is set, the light direction will automatically follow the Transform.
- Ambient light is also set automatically, but you may get better quality results by switching to Manual and manually setting the ambient light color according to the scene conditions.
You can use the built-in procedural skybox. SkyBox drawn by
Clear Flag etc. of Camera is overpainted.
Custom Skyin the HDRP environment. The rendering result of this skybox is used when calculating Ambient lighting.
The HDRI environment map can be merged into the skybox. For example, you can draw the starry sky only at night to represent a realistic night sky.
Specify the cloud to draw. Clouds can use two layers and you can draw different clouds on each layer.
- This is the main cloud layer. Affects the drawing of shaft effects, god-ray effects and shadows.
- This layer is for drawing the upper clouds. Does not affect shaft effect, shadows or god-ray effects.
Specify cloud profile
Apply a cloud to the layer by specifying a
Parameters related to shading of the
cloud profile can be overridden. Cloud shadows can vary greatly depending on the lighting environment, so it’s a good idea to override them to create a cloud look that matches your scene.
Adjust the cloud scrolling animation. By adjusting the scroll speed and phase, you can also create a swelling sea of clouds animation or a time-lapse animation.
Massive Clouds Atmos TimeLapse Demo-Unity2019.3 / HDRP
You can adjust the resolution for drawing clouds. Resolution has a great influence on the rendering quality and frame rate at runtime. If the resolution is doubled, the drawing load will be quadrupled. You need to make adjustments taking into consideration the GPU power of the target platform and the desired frame rate.
Adjustable Atmosphere, Screen Space Shadows, Lens Shafts, and Godrays. You can also adjust the influence of atmospheric scattering on the clouds here. Atmospheric scattering can enhance the colors of the atmosphere and the sun. It is designed to arbitrarily emphasize a particular environment, such as purple at sunrise or red at sunset.
Quality settings allow you to adjust the resolution, lens shaft, and godray calculation system. Atmospheric scattering has a sufficient effect even at a lower resolution, so it is recommended to set the resolution as low as possible.
Adjust Exponential Fog with height limitation.
The fog can not only adjust the color, but also add a scattering effect to sunlight. For example, you can use the scattering effect to create a fantastic landscape that floats in a monotone fog.