roleplay/client/shader/hex_common.glsl

30 lines
478 B
Plaintext

struct Hex {
float heights[6];
uint colors[6];
};
layout(std430, buffer_reference) readonly buffer HexList {
Hex h[];
};
struct Region {
uint x;
uint y;
HexList hexes;
};
layout(std430, buffer_reference) readonly buffer RegionList {
Region r[];
};
2024-10-30 21:24:03 -06:00
layout(std430, buffer_reference) readonly buffer HexContext {
mat4 proj;
mat4 view;
RegionList regions;
2024-10-30 21:24:03 -06:00
};
layout(std430, push_constant) uniform PushConstant {
HexContext context;
float time;
} pc;