webgl state diagram : draw on cube #420
-
In the webgl-state-diagram I wonder how the "draw cube on cube" example can work.
but there is no :
I don't think this is a mistake, but rather a misunderstanding on my part. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
is required if a row of the data is not a multiple of 4 bytes (the default UNPACK_ALIGNMENT setting). In the example, 16 bytes are being passed in. 4 rows of 4 bytes each. Because each row is 4 bytes and 4 is a multiple of 4 it works as is. |
Beta Was this translation helpful? Give feedback.
is required if a row of the data is not a multiple of 4 bytes (the default UNPACK_ALIGNMENT setting). In the example, 16 bytes are being passed in. 4 rows of 4 bytes each. Because each row is 4 bytes and 4 is a multiple of 4 it works as is.