瀏覽代碼

HDR textures vertical flip

pull/285/head
Ray 8 年之前
父節點
當前提交
7f6b16add4
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      src/textures.c

+ 4
- 0
src/textures.c 查看文件

@ -213,8 +213,12 @@ Image LoadImage(const char *fileName)
FILE *imFile = fopen(fileName, "rb");
stbi_set_flip_vertically_on_load(true);
// Load 32 bit per channel floats data
image.data = stbi_loadf_from_file(imFile, &image.width, &image.height, &imgBpp, 0);
stbi_set_flip_vertically_on_load(false);
fclose(imFile);

Loading…
取消
儲存