roleplay/client/shader/hex_common.glsl

23 lines
376 B
Plaintext

struct Hex {
float heights[6];
uint colors[6];
};
2024-11-01 17:34:41 -06:00
layout(std430, buffer_reference) readonly buffer Region {
uint q;
uint r;
Hex hexes[];
};
2024-10-30 21:24:03 -06:00
layout(std430, buffer_reference) readonly buffer HexContext {
mat4 proj;
mat4 view;
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;
2024-11-01 17:34:41 -06:00
uint region;
2024-10-30 21:24:03 -06:00
float time;
} pc;