Type of [Sky] that is generated procedurally based on user input parameters.
ProceduralSky provides a way to create an effective background quickly by defining procedural parameters for the sun, the sky and the ground. The sky and ground are very similar, they are defined by a color at the horizon, another color, and finally an easing curve to interpolate between these two colors. Similarly, the sun is described by a position in the sky, a color, and an easing curve. However, the sun also defines a minimum and maximum angle, these two values define at what distance the easing curve begins and ends from the sun, and thus end up defining the size of the sun in the sky.
The ProceduralSky is updated on the CPU after the parameters change. It is stored in a texture and then displayed as a background in the scene. This makes it relatively unsuitable for real-time updates during gameplay. However, with a small enough texture size, it can still be updated relatively frequently, as it is updated on a background thread when multi-threading is available.
Color of the ground at the bottom.
How quickly the [member ground_horizon_color] fades into the [member ground_bottom_color].
Amount of energy contribution from the ground.
Color of the ground at the horizon.
How quickly the [member sky_horizon_color] fades into the [member sky_top_color].
Amount of energy contribution from the sky.
Color of the sky at the horizon.
Color of the sky at the top.
Distance from center of sun where it fades out completely.
Distance from sun where it goes from solid to starting to fade.
The sun's color.
How quickly the sun fades away between [member sun_angle_min] and [member sun_angle_max].
Amount of energy contribution from the sun.
The sun's height using polar coordinates.
The direction of the sun using polar coordinates.
Size of [Texture] that the ProceduralSky will generate. The size is set using [enum TextureSize].
Represents the size of the [enum TextureSize] enum.