Skip to content

Commit

Permalink
[rtextures] Load cubemap mipmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Not-Nik committed Oct 24, 2024
1 parent 0717abb commit 6d20ec7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rtextures.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6d20ec7

Please sign in to comment.