roleplay/client/shader/hex_common.glsl

26 lines
434 B
Plaintext

struct Hex {
float heights[6];
2024-11-02 22:02:32 -06:00
uint colors[7];
};
2024-11-01 17:34:41 -06:00
layout(std430, buffer_reference) readonly buffer Region {
2024-11-02 12:07:11 -06:00
int q;
int r;
2024-11-01 17:34:41 -06:00
Hex hexes[];
};
2024-10-30 21:24:03 -06:00
layout(std430, buffer_reference) readonly buffer HexContext {
mat4 proj;
mat4 view;
vec4 click_start;
vec4 click_end;
vec4 hover_start;
vec4 hover_end;
2024-11-01 17:34:41 -06:00
Region regions[];
2024-10-30 21:24:03 -06:00
};
layout(std430, push_constant) uniform PushConstant {
HexContext context;
float time;
} pc;