mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
fix: i hate ai copilots doing binary
This commit is contained in:
1 parent
ce4f7a55b6
commit
fdd8aac017
2 files changed
+54
-45
No files matched your search
@@ -6,6 +6,7 @@ export async function readTexture(path: string) {
|
||||
const ddsTexturePath = path.replace('.tex', '.dx11.dds.dvpl');
|
||||
const decompressedDvpl = await readDVPLFile(ddsTexturePath);
|
||||
const stream = new DdsStream(decompressedDvpl);
|
||||
console.log('Reading', ddsTexturePath);
|
||||
const ddsRaw = await stream.dds();
|
||||
|
||||
return await sharp(ddsRaw.data, { raw: ddsRaw }).png().toBuffer();
|
||||
|
||||
Reference in new issue
Block a user