23 lines
374 B
GLSL
23 lines
374 B
GLSL
struct Hex {
|
|
float heights[6];
|
|
uint colors[6];
|
|
};
|
|
|
|
layout(std430, buffer_reference) readonly buffer Region {
|
|
int q;
|
|
int r;
|
|
Hex hexes[];
|
|
};
|
|
|
|
layout(std430, buffer_reference) readonly buffer HexContext {
|
|
mat4 proj;
|
|
mat4 view;
|
|
Region regions[];
|
|
};
|
|
|
|
layout(std430, push_constant) uniform PushConstant {
|
|
HexContext context;
|
|
uint region;
|
|
float time;
|
|
} pc;
|