Closed Kibouo closed 6 years ago
The data for the buffer is the image data of six images appended to each other in the order of: left, right, bottom, top, back, and front (at least that is the order I have). The size of the cubemap is the width of one of the square images.
By "appended to each other" do you mean that you open 6 different image files and place them after each other in the buffer?
Say you load an image into a Vec of u8's, where each value is the color component r, g, b, or a; or any other variant. Just append the next image's data onto that Vec.
Sorry, new to graphical programming. I'm confused over the usage of a cubemap (when constructing an
ImmutableImage
):size
parameter ofDimensions::Cubemap
hold? Rather, what does it want to know the size of?Thanks in advance!