roleplay/client/shader/hex_common.glsl

26 lines
434 B
GLSL

struct Hex {
float heights[6];
uint colors[7];
};
layout(std430, buffer_reference) readonly buffer Region {
int q;
int r;
Hex hexes[];
};
layout(std430, buffer_reference) readonly buffer HexContext {
mat4 proj;
mat4 view;
vec4 click_start;
vec4 click_end;
vec4 hover_start;
vec4 hover_end;
Region regions[];
};
layout(std430, push_constant) uniform PushConstant {
HexContext context;
float time;
} pc;