mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
add comments explaining the elements of time_of_day and tick in shaders
This commit is contained in:
parent
d638215b88
commit
65e6eb4e38
@ -9,9 +9,14 @@ layout(std140, set = 0, binding = 0) uniform u_globals {
|
||||
vec4 focus_off;
|
||||
vec4 focus_pos;
|
||||
vec4 view_distance;
|
||||
// .x = time of day, repeats every day.
|
||||
// .y = a continuous value for what day it is. Repeats every `tick_overflow` for precisions sake.
|
||||
vec4 time_of_day;
|
||||
vec4 sun_dir;
|
||||
vec4 moon_dir;
|
||||
// .x = The `Time` resource, repeated every `tick_overflow`
|
||||
// .y = a floored (`Time` / `tick_overflow`)
|
||||
// .z = `Time`, not recommended to be used as it might have low precision
|
||||
vec4 tick;
|
||||
vec4 screen_res;
|
||||
uvec4 light_shadow_count;
|
||||
|
Loading…
Reference in New Issue
Block a user