Skip to content

Commit

Permalink
Fix UASTC_R8_UNORM wasm path (#14248)
Browse files Browse the repository at this point in the history
  • Loading branch information
Popov72 committed Sep 1, 2023
1 parent 3333a87 commit 41d7152
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/tools/ktx2Decoder/src/Transcoders/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export * from "./liteTranscoder";
export * from "./liteTranscoder_UASTC_ASTC";
export * from "./liteTranscoder_UASTC_BC7";
export * from "./liteTranscoder_UASTC_R8_UNORM";
export * from "./liteTranscoder_UASTC_RG8_UNORM";
export * from "./liteTranscoder_UASTC_RGBA_UNORM";
export * from "./liteTranscoder_UASTC_RGBA_SRGB";
export * from "./mscTranscoder";
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import type { KTX2FileReader, IKTX2_ImageDesc } from "../ktx2FileReader";
// eslint-disable-next-line @typescript-eslint/naming-convention
export class LiteTranscoder_UASTC_R8_UNORM extends LiteTranscoder {
/**
* URL to use when loading the wasm module for the transcoder (srgb)
* URL to use when loading the wasm module for the transcoder (unorm)
*/
public static WasmModuleURL = "https://preview.babylonjs.com/1/uastc_r8_unorm.wasm";
public static WasmModuleURL = "https://preview.babylonjs.com/ktx2Transcoders/1/uastc_r8_unorm.wasm";

public static CanTranscode(src: KTX2.SourceTextureFormat, dst: KTX2.TranscodeTarget, isInGammaSpace: boolean): boolean {
return src === KTX2.SourceTextureFormat.UASTC4x4 && dst === KTX2.TranscodeTarget.R8;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { KTX2FileReader, IKTX2_ImageDesc } from "../ktx2FileReader";
// eslint-disable-next-line @typescript-eslint/naming-convention
export class LiteTranscoder_UASTC_RG8_UNORM extends LiteTranscoder {
/**
* URL to use when loading the wasm module for the transcoder (srgb)
* URL to use when loading the wasm module for the transcoder (unorm)
*/
public static WasmModuleURL = "https://preview.babylonjs.com/ktx2Transcoders/1/uastc_rg8_unorm.wasm";

Expand Down

0 comments on commit 41d7152

Please sign in to comment.