I'm trying to push some constants to my shader nothing fancy the usual camera structure: pos, dir, upVec, rightVec
each of those variable is a 3d vector of 12bytes, for a total of 48 bytes
and I've made the same structure in my shader using vec3
but somehow they end up wrong, so I've looked it up with Nsigh and yeah for some reason each vector is spaced out by 16 bytes (screen1)
so I try using an array of 3 float, because that essentially the same and every work fine (screen2)
so that's weird isn't it?
happy to keep using array, but I'm interested to understand why it does that
thanks for your time 🙂