Browse Source

[rtextures] Load cubemap mipmaps

pull/4429/head
Not-Nik 2 months ago
parent
commit
5a66053bc6
No known key found for this signature in database GPG Key ID: E95F679E3CDD9784
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/rtextures.c

+ 3
- 0
src/rtextures.c View File

@ -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…
Cancel
Save