add comments explaining the elements of time_of_day and tick in shaders

This commit is contained in:
Isse 2023-10-11 20:29:37 +02:00
parent d638215b88
commit 65e6eb4e38

View File

@ -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;