|
|
|
@ -58,13 +58,14 @@ void main() {
|
|
|
|
|
/*
|
|
|
|
|
vec2 hex_qr = start_coords[side]*radius + direction_coords[side]*(ring-(radius*side));
|
|
|
|
|
vec2 world_qr = vec2(0, 0);
|
|
|
|
|
world_qr.x = hex_qr.x
|
|
|
|
|
+ region_qr.x*((region_size-1)*2 + 1.0)
|
|
|
|
|
+ region_qr.y*((region_size-1) + 0.0);
|
|
|
|
|
|
|
|
|
|
world_qr.y = hex_qr.y
|
|
|
|
|
- region_qr.x*(region_size + 0.5)
|
|
|
|
|
- region_qr.y*(region_size*2 + 1.0);
|
|
|
|
|
- region_qr.x*((region_size-1) + 0.5)
|
|
|
|
|
- region_qr.y*((region_size-1)*2 + 1.0);
|
|
|
|
|
|
|
|
|
|
world_qr.x = hex_qr.x
|
|
|
|
|
+ region_qr.x*(region_size*2 + 1.0)
|
|
|
|
|
+ region_qr.y*(region_size + 0.0);
|
|
|
|
|
color = vec4(world_qr/100, 0, 1);
|
|
|
|
|
|
|
|
|
|
vec4 hex_pos = vec4(0, 0, 0, 1);
|
|
|
|
|