Skip to content

Commit

Permalink
fix: add exr file extension support to TextureLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoguzhu committed Nov 29, 2024
1 parent de235ab commit c81d7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layaAir/laya/loaders/TextureLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export class TextureLoader implements IResourceLoader {
}
}

const compressedFormats = ["ktx", "pvr", "dds", "hdr", "lanit.ls"];
const compressedFormats = ["ktx", "pvr", "dds", "hdr", "exr", "lanit.ls"];
const videoFormats = ["mp4", "webm"];

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

0 comments on commit c81d7d3

Please sign in to comment.