aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-04-02 14:49:55 +0200
committermetamuffin <metamuffin@disroot.org>2025-04-02 14:49:55 +0200
commit65adfb4be36e1d0cdb8926fb734b0477fb146631 (patch)
tree6b25b41c1d80b77ca90b1c423721610f0100e289
parent0a0a026bc30055933958dee11691a87a3b1ec622 (diff)
downloadunity-tools-65adfb4be36e1d0cdb8926fb734b0477fb146631.tar
unity-tools-65adfb4be36e1d0cdb8926fb734b0477fb146631.tar.bz2
unity-tools-65adfb4be36e1d0cdb8926fb734b0477fb146631.tar.zst
update for crunched dxt cubemap, still doesnt work.
-rw-r--r--Cargo.lock4
-rw-r--r--Cargo.toml2
-rw-r--r--src/classes/texture2d.rs1
3 files changed, 3 insertions, 4 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 0838741..091b592 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1173,8 +1173,8 @@ dependencies = [
[[package]]
name = "texture2ddecoder"
-version = "0.1.1"
-source = "git+https://github.com/UniversalGameExtraction/texture2ddecoder?rev=d2b4653fda298f1da39917da86bc509b17879808#d2b4653fda298f1da39917da86bc509b17879808"
+version = "0.1.2"
+source = "git+https://github.com/UniversalGameExtraction/texture2ddecoder?rev=ef480c463d1e1ec421eda449357192cbf176745d#ef480c463d1e1ec421eda449357192cbf176745d"
dependencies = [
"paste",
]
diff --git a/Cargo.toml b/Cargo.toml
index e045519..8dd305d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,7 +20,7 @@ serde = { version = "1.0.219", features = ["derive"] }
glam = { version = "0.30.0", features = ["serde"] }
texpresso = "2.0.1"
image = "0.25.5"
-texture2ddecoder = { git = "https://github.com/UniversalGameExtraction/texture2ddecoder", rev = "d2b4653fda298f1da39917da86bc509b17879808" }
+texture2ddecoder = { git = "https://github.com/UniversalGameExtraction/texture2ddecoder", rev = "ef480c463d1e1ec421eda449357192cbf176745d" }
# texture2ddecoder = { path = "../ext/texture2ddecoder" }
lewton = "0.10.2"
rayon = "1.10.0"
diff --git a/src/classes/texture2d.rs b/src/classes/texture2d.rs
index d1e6e30..682da21 100644
--- a/src/classes/texture2d.rs
+++ b/src/classes/texture2d.rs
@@ -134,7 +134,6 @@ impl Texture2D {
}
);
let mut buf = vec![0u32; w * h * self.image_count as usize];
- // TODO decode multi-face textures
texture2ddecoder::decode_unity_crunch(&self.image_data, w, h, &mut buf)
.map_err(|e| anyhow!("{e}"))?;
Ok(u32_argb_buf_to_images(buf))