This package is a realistic, simple, dynamic and performance efficient sky.
https://www.youtube.com/watch?v=s2R-SdRo6pk
Link to Asset Store
PDF file with documentation
This asset is easy to setup and it is highly customizable. Distribution of the sky color is based on physical model, but as a reference you may choose any color you want. Thus it is possible to create different futuristic skies.
The sky is dynamic and it depends on the day-time. Provided a day-time controller, that can drive the sun over the sky depending on the time of day, month and latitude.
Performance
The sky is performance efficient. It can be used for low-end mobile devices.
1. The shader is more efficient then the standard Unity Procedural Sky, look at the stats:
Stats for standard Unity Procedural Sky:
// Stats for Vertex shader:
// d3d11 : 154 avg math (152..157), 2 branch
// d3d11_9x : 154 avg math (152..157), 2 branch
// d3d9 : 342 avg math (334..350)
// gles : 14 avg math (3..21), 0 avg branch (0..1)
// metal : 195 avg math (194..197), 1 avg branch (1..2)
// opengl : 14 avg math (3..21), 0 avg branch (0..1)
// Stats for Fragment shader:
// d3d11 : 13 avg math (2..24)
// d3d11_9x : 13 avg math (2..24)
// d3d9 : 21 avg math (6..36)
// metal : 14 avg math (3..21), 0 avg branch (0..1)
Stats for shader in this package:
// Stats for Vertex shader:
// d3d11 : 79 math
// d3d11_9x : 79 math
// d3d9 : 163 avg math (160..166)
// gles : 14 avg math (2..27)
// metal : 89 avg math (86..92)
// opengl : 14 avg math (2..27)
// Stats for Fragment shader:
// d3d11 : 13 avg math (1..26)
// d3d11_9x : 13 avg math (1..26)
// d3d9 : 16 avg math (3..30)
// metal : 14 avg math (2..27)
Note, that for the shader of this package, there is no branching, that makes it efficient for mobile devices.
2. Most of the heavy calculations are performed in vertex shader, it is typical for sky rendering. But in this package, a special technique is used that utilize the vertices in a more efficient way, than it is done in the standard Unity Procedural Sky.
All the content is provided as source files.
Support: stanislav@podgorskiy.com