mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: generalization
This commit is contained in:
1 parent
c624136dc7
commit
436a519db8
3 files changed
+318
-317
No files matched your search
@@ -1,12 +1,10 @@
|
||||
import sharp from 'sharp';
|
||||
import { readDVPLFile } from '../blitz/readDVPLFile';
|
||||
import { DdsStream } from '../streams/dds';
|
||||
import { ToJpgOptions } from './toJpg';
|
||||
|
||||
export async function readTexture(
|
||||
path: string,
|
||||
options?: Partial<Omit<ToJpgOptions, 'format'>>,
|
||||
) {
|
||||
export async function readTexture(path: string) {
|
||||
console.log(path);
|
||||
|
||||
const ddsTexturePath = path.replace('.tex', '.dx11.dds.dvpl');
|
||||
const decompressedDvpl = await readDVPLFile(ddsTexturePath);
|
||||
const stream = new DdsStream(decompressedDvpl);
|
||||
|
||||
Reference in new issue
Block a user