mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
29 lines
696 B
GLSL
29 lines
696 B
GLSL
layout (std140)
|
|
uniform u_globals {
|
|
mat4 view_mat;
|
|
mat4 proj_mat;
|
|
mat4 all_mat;
|
|
vec4 cam_pos;
|
|
vec4 focus_pos;
|
|
vec4 view_distance;
|
|
vec4 time_of_day;
|
|
vec4 tick;
|
|
vec4 screen_res;
|
|
uvec4 light_shadow_count;
|
|
uvec4 medium;
|
|
ivec4 select_pos;
|
|
vec4 gamma;
|
|
// 0 - FirstPerson
|
|
// 1 - ThirdPerson
|
|
uint cam_mode;
|
|
};
|
|
|
|
// Specifies the pattern used in the player dithering
|
|
mat4 threshold_matrix = mat4(
|
|
vec4(1.0 / 17.0, 9.0 / 17.0, 3.0 / 17.0, 11.0 / 17.0),
|
|
vec4(13.0 / 17.0, 5.0 / 17.0, 15.0 / 17.0, 7.0 / 17.0),
|
|
vec4(4.0 / 17.0, 12.0 / 17.0, 2.0 / 17.0, 10.0 / 17.0),
|
|
vec4(16.0 / 17.0, 8.0 / 17.0, 14.0 / 17.0, 6.0 / 17.0)
|
|
);
|
|
float distance_divider = 2;
|
|
float shadow_dithering = 0.5; |