|
|
@ -1,5 +1,6 @@
|
|
|
|
#version 450
|
|
|
|
#version 450
|
|
|
|
#extension GL_EXT_buffer_reference : require
|
|
|
|
#extension GL_EXT_buffer_reference : require
|
|
|
|
|
|
|
|
#extension GL_EXT_buffer_reference_uvec2 : require
|
|
|
|
|
|
|
|
|
|
|
|
#include "hex_common.glsl"
|
|
|
|
#include "hex_common.glsl"
|
|
|
|
|
|
|
|
|
|
|
@ -16,6 +17,10 @@ vec4 int2color(uint color_int) {
|
|
|
|
void main() {
|
|
|
|
void main() {
|
|
|
|
int region_index = gl_InstanceIndex/region_hex_count;
|
|
|
|
int region_index = gl_InstanceIndex/region_hex_count;
|
|
|
|
Region region = pc.context.regions[region_index];
|
|
|
|
Region region = pc.context.regions[region_index];
|
|
|
|
|
|
|
|
if(uvec2(region) == uvec2(0)) {
|
|
|
|
|
|
|
|
gl_Position = vec4(0, 0, 0, 0);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
if(region.map != pc.context.current_map) {
|
|
|
|
if(region.map != pc.context.current_map) {
|
|
|
|
gl_Position = vec4(0, 0, 0, 0);
|
|
|
|
gl_Position = vec4(0, 0, 0, 0);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|