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 and stored in a texture and then displayed as a background in the scene. This makes it relatively unsuitable for realtime updates during gameplay. But with a small texture size it is still feasible to update relatively frequently becuase 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.
- Color of the sun.
- How quickly the sun fades away between [member sun_angle_min] and [member sun_angle_max]
- Amount of energy contribution from the sun.
- The suns height using polar coordinates.
- The direction of the sun using polar coordinates.
- Size of [Texture] that the ProceduralSky will generate.