|
|
@ -4201,6 +4201,9 @@ TextureCubemap LoadTextureCubemap(Image image, int layout) |
|
|
|
faces = GenImageColor(size, size*6, MAGENTA); |
|
|
|
ImageFormat(&faces, image.format); |
|
|
|
|
|
|
|
ImageMipmaps(&image); |
|
|
|
ImageMipmaps(&faces); |
|
|
|
|
|
|
|
// NOTE: Image formatting does not work with compressed textures |
|
|
|
|
|
|
|
for (int i = 0; i < 6; i++) ImageDraw(&faces, image, faceRecs[i], (Rectangle){ 0, (float)size*i, (float)size, (float)size }, WHITE); |
|
|
|