#define ATTR_POS   0
#define ATTR_UV    1
#define ATTR_COLOR 2


#define TEXUNIT_TEMP 0
#define TEXUNIT_COLOR 1
#define TEXUNIT_AREATEX 2
#define TEXUNIT_SEARCHTEX 3
#define TEXUNIT_EDGES 4
#define TEXUNIT_BLEND 5


#ifdef __cplusplus

struct Globals

#else  // __cplusplus

layout(binding = 0, std140) uniform Globals

#endif  // __cplusplus
{
	vec4 screenSize;
	mat4 viewProj;
	mat4 guiOrtho;
};


struct Cube {
	vec4 rotation;
	vec3 position;
	unsigned int color;
};

#define ATTR_POS   0
#define ATTR_UV    1
#define ATTR_COLOR 2


#define TEXUNIT_TEMP 0
#define TEXUNIT_COLOR 1
#define TEXUNIT_AREATEX 2
#define TEXUNIT_SEARCHTEX 3
#define TEXUNIT_EDGES 4
#define TEXUNIT_BLEND 5


#ifdef __cplusplus

struct Globals

#else  // __cplusplus

layout(binding = 0, std140) uniform Globals

#endif  // __cplusplus
{
	vec4 screenSize;
	mat4 viewProj;
	mat4 guiOrtho;
};


struct Cube {
	vec4 rotation;
	vec3 position;
	uint color;
};

Change "unsigned int" -> "uint" for better GLSL compatibility
Change "unsigned int" -> "uint" for better GLSL compatibility
