Skip to main content

☁️ Clouds

A simple Cloud Layer shader


This shader is aimed at providing a passable cloud layer effect for background use without using any noise generators. The effect is fully unlit and relies on artistic use of gradients to look correct in the environment


Cloud Inspector
Example setup used in the Demo world for the outdoor clouds

Settings

  • Noise Tex: A special pre-baked noise texture that is not meant to be changed
  • Depth Transparency: Controls the amount of depth-based blending applied. Based on the name - requires a depth light (see below)
  • Color Bottom: Controls the start color of the gradient
  • Color Top: Controls the end color of the gradient
  • Height Bottom: Controls the position of the gradient start, applied in local space
  • Height Top: Controls the position of the gradient end, applied in local space
  • Extrusion Mode: Determines the way the cloud movement is done
    • Normal: The mesh will be move along the normal vectors of the surface
    • World Space: The mesh will be moved along the pre-determined direction in world space
  • Extrusion Direction: Only visible when Extrusion Mode is set to World Space. Controls the world-space direction of the extrusion applied by the cloud noise
  • Only Top: Only visible when Extrusion Mod is set to World Space. Limits the vertex movement to the upwards-facing vertices
Requires Depth Pass

The depth blending effect requires a depth pass in the world. The easiest way to achieve one is to create a light with settings like this: Intensity 0.001, Shadow Type: Hard Shadows, Strength: 0.001, Culling Mask: Only Stereo Left