I need to pass 24 vec3, to a shader
However glUniform3fv requires an array of GLfloat,
Since my vec3 structure looks like:
struct vec3{float x; float y; float z;};
Can i just pass that safely, to float parray[24 * 3] using memcpy?
Dont bother about GLfloat and float sizes i just gave pseudocode i just need to know if sent array will have first vertex at position 0 second one will be in pos 3, thrid one in 6 and so on, cause im not sure when even float and GLfloat match the sizes i could get some extra bytes anywhere,
And another question is how then i define an uniform in shader?
uniform vec3 box[24];. ?
Cheers