#NVJOB Dynamic Sky Lite (standard render)



Simple and fast sky shader.
The asset includes two shaders and a simple script.
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.

For Unity version of at least 2019.1.8 (64-bit)
Current version 2.3
Download from Unity Asset Store Download from GitHub Archive of previous versions Report a Problem / Issue Tracker / FAQ

Information

The movement of clouds is carried out using global shader variables: _SkyShaderUvX, _SkyShaderUvZ.
_SkyShaderUvX, _SkyShaderUvZ - Offset main texture (Sky shader).

using UnityEngine; public class DynamicSkyLite : MonoBehaviour { public float ssgUvRotateSpeed = 1; public float ssgUvRotateDistance = 1; public Transform player; Vector2 ssgVector; Transform tr; private void Awake() { ssgVector = Vector2.zero; tr = transform; } void Update() { ssgVector = Quaternion.AngleAxis(Time.time * ssgUvRotateSpeed, Vector3.forward) * Vector2.one * ssgUvRotateDistance; Shader.SetGlobalFloat("_SkyShaderUvX", ssgVector.x); Shader.SetGlobalFloat("_SkyShaderUvZ", ssgVector.y); tr.position = new Vector3(player.position.x, tr.position.y, player.position.z); } }
#NVJOB Nicholas Veselov (nvjob.github.io) | Dynamic Sky Lite (standard render) Unity Asset



#NVJOB Nicholas Veselov (nvjob.github.io) | Dynamic Sky Lite (standard render) Unity Asset

#NVJOB Nicholas Veselov (nvjob.github.io) | Dynamic Sky Lite (standard render) Unity Asset

#NVJOB Nicholas Veselov (nvjob.github.io) | Dynamic Sky Lite (standard render) Unity Asset

#NVJOB Nicholas Veselov (nvjob.github.io) | Dynamic Sky Lite (standard render) Unity Asset

License

This project is licensed under the MIT License
(C) Copyright 2016-2019 #NVJOB
Nicholas Veselov - independent software and assets developer
Website powered by GitHub.com