From 59d28d60e95d9b23bfe0e9386f9f2b2bc47fd23c Mon Sep 17 00:00:00 2001 From: Richard Geldreich Date: Tue, 10 Sep 2024 23:37:07 -0400 Subject: [PATCH] Fixing UASTC HDR DFD --- encoder/basisu_comp.cpp | 2 +- webgl/encoder/build/basis_encoder.wasm | Bin 1735264 -> 1735264 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/encoder/basisu_comp.cpp b/encoder/basisu_comp.cpp index 8cf1584..f16e75b 100644 --- a/encoder/basisu_comp.cpp +++ b/encoder/basisu_comp.cpp @@ -2980,7 +2980,7 @@ namespace basisu 0x0,0x0,0x7F,0x80, // 7 bitLength/bitOffset/channelType and Qualifer flags (KHR_DF_SAMPLE_DATATYPE_FLOAT etc.) 0x0,0x0,0x0,0x0, // 8 samplePosition0-samplePosition3 0x0,0x0,0x0,0x0, // 9 sampleLower (0.0) - 0x00, 0x00, 0x80, 0xF3 // 10 sampleHigher (?) + 0x00, 0x00, 0x80, 0x3F // 10 sampleHigher (1.0) }; void basis_compressor::get_dfd(uint8_vec &dfd, const basist::ktx2_header &header) diff --git a/webgl/encoder/build/basis_encoder.wasm b/webgl/encoder/build/basis_encoder.wasm index 1becca41ed77633c6ac982de2c54790237b94ce0..8a0dd64d86655756fd3431a77eddd09dbfb777c9 100644 GIT binary patch delta 72 zcmaFxCG)|T%!U@m7N!>F7M2#)7Pc1l7LFFq7OocV7M>Q~7QPn#7J(MQ7NHj57LgXw c7O@ub7KtsAOgk9uryK5&l-@44L(=IG0KB>wtN;K2 delta 72 zcmV~$NezH7006