I am having Uniform buffer object:
layout (std140) uniform ubo{
vec3 A;
float B;
vec4 C;
vec4 D;
vec4 E;
vec4 F;
float G;
};
I am assuming offset of each of them as A: 0, B: 12, C: 16, D: 32 E: 48 F:64 G:80
But it doesn't seem so if i use all of them as vec4s everything works fine. What would be the offsets of each of them?
I tried with these new offsets: A: 0, B: 16, C: 32, D: 48 E: 64 F:80 G:96 but it still doesn't work