[rtextures] Load cubemap mipmaps
This commit is contained in:
parent
db3e68605f
commit
5a66053bc6
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user