I've decided shader globals shouldn't be initialized in their respective shaders because their initial values are specified in the project config.
This commit is contained in:
parent
32d9f4e1b0
commit
4e151ec943
|
@ -37,11 +37,11 @@ uniform sampler2D cloud_map:
|
||||||
uniform sampler2D star_map:
|
uniform sampler2D star_map:
|
||||||
source_color, filter_linear, repeat_enable, hint_default_black;
|
source_color, filter_linear, repeat_enable, hint_default_black;
|
||||||
/// Interpolates between brightest time of day and darkest time of night.
|
/// Interpolates between brightest time of day and darkest time of night.
|
||||||
global uniform float night = 0.0;
|
global uniform float night;
|
||||||
/// Interpolates quadratically between clear sky and cloudy sky.
|
/// Interpolates quadratically between clear sky and cloudy sky.
|
||||||
global uniform float overcast = 0.25;
|
global uniform float overcast;
|
||||||
/// Interpolates quadratically between no wind and maximum wind.
|
/// Interpolates quadratically between no wind and maximum wind.
|
||||||
global uniform float wind = 0.25;
|
global uniform float wind;
|
||||||
|
|
||||||
/// Computes cloud RGBA at given UV.
|
/// Computes cloud RGBA at given UV.
|
||||||
vec4 clouds(vec2 uv) {
|
vec4 clouds(vec2 uv) {
|
||||||
|
|
Loading…
Reference in New Issue