Skip to content

Commit c81d7d3

Browse files
committed
fix: add exr file extension support to TextureLoader
1 parent de235ab commit c81d7d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layaAir/laya/loaders/TextureLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export class TextureLoader implements IResourceLoader {
287287
}
288288
}
289289

290-
const compressedFormats = ["ktx", "pvr", "dds", "hdr", "lanit.ls"];
290+
const compressedFormats = ["ktx", "pvr", "dds", "hdr", "exr", "lanit.ls"];
291291
const videoFormats = ["mp4", "webm"];
292292

293293
Loader.registerLoader(["tga", "tif", "tiff", "png", "jpg", "jpeg", "webp", "rendertexture", ...videoFormats, ...compressedFormats], TextureLoader, Loader.IMAGE, true);

0 commit comments

Comments
 (0)