hello
I try to use uint as vertex attribute. like
layout(location = 0) in vec3 a_Vertex;
layout(location = 1) in uint a_Color;
layout(location = 0) out vec4 color;
void main()
{
vec4 col = unpackUnorm4x8(a_Color);
color = col; //cb.color;
***
sending on draw for line just 2 vertex with struct { vec3 position; uint32 color }; Drawing just line.
The strange situation is next. color is always red or gradation of red. looks like extracts only red color.
I thought it may related to data align, but my data is too small.vertex is 16 byte, 32byte is line data.
does anyone have/had similar problem? or any suggestion?
GPU is GTX 750ti. OS win 8.1, Ubuntu 18.04 lts.
thanks.