mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
Update index.ts
This commit is contained in:
1 parent
438b565cbb
commit
c0895409bc
1 file changed
+1
-1
@@ -6,7 +6,7 @@ import { TextureMutation } from './constants';
|
|||||||
|
|
||||||
export async function readTexture(path: string, mutation?: TextureMutation) {
|
export async function readTexture(path: string, mutation?: TextureMutation) {
|
||||||
const ddsTexturePath = path.replace('.tex', '.dx11.dds');
|
const ddsTexturePath = path.replace('.tex', '.dx11.dds');
|
||||||
const isDds = existsSync(ddsTexturePath);
|
const isDds = existsSync(`${ddsTexturePath}.dvpl`);
|
||||||
const resolvedTexturePath = isDds
|
const resolvedTexturePath = isDds
|
||||||
? ddsTexturePath
|
? ddsTexturePath
|
||||||
: ddsTexturePath.replace('.dds', '.pvr');
|
: ddsTexturePath.replace('.dds', '.pvr');
|
||||||
|
|||||||
Reference in new issue
Block a user