computer-graphics-raster-images
computer-graphics-raster-images copied to clipboard
Understanding vector format for RGBA and RGB data.
Hello, I understand I'm running late, but I just wanted to confirm the vector array format for the rgba and rgb data. Is the rgba data that is in the provided vector in the following format: [r0, r1, r2, ... , rx, b0, b1, ... ,bx, g0, g1, ... , gx, a0, a1, ... , ax] Or is it like so: [r0, g0, b0, a0, r1, g1, b1, a1, ... , rx, gx, bx, ax]
Would like to know if its the first convention or the second? As well as which format our rgb vector and other data sets should follow.
It's the second one: [r0, g0, b0, a0, r1, g1, b1, a1, ... , rx, gx, bx, ax] The RGB vector is the same but without ax.