Simple and fast sky shader.
The asset includes two shaders and a simple script.
This is not just a static skybox, but a dynamic sky (clouds move and change shape) that can be customized for any task. You can create any sky, under different weather, day and night sky, or even make a fantasy sky.
Only Built-in Render Pipeline.
For Unity version of at least 2019.1.8 (64-bit)
Current version 2.3
This shader does not work with SRP (HDRP, URP)!
There is an example in the asset that allows you to quickly understand how to use the "sky" in your project. For the shader to work properly, a dome model with prepared UV is required (model of the dome is in the asset).
The movement of clouds is carried out using global shader variables: _SkyShaderUvX, _SkyShaderUvZ.
_SkyShaderUvX, _SkyShaderUvZ - Offset main texture (Sky shader).
public class DynamicSkyLite : MonoBehaviour
public float ssgUvRotateSpeed = 1;
public float ssgUvRotateDistance = 1;
public Transform player;
private void Awake()
ssgVector = Vector2.zero;
tr = transform;
ssgVector = Quaternion.AngleAxis(Time.time * ssgUvRotateSpeed, Vector3.forward) * Vector2.one * ssgUvRotateDistance;
tr.position = new Vector3(player.position.x, tr.position.y, player.position.z);