ws-game: image/vtf (Valve VTF 7.0-7.5 read: every common texel format incl. DXT / ATIxN via codecs/image/Bcn, halves / floats, frames, mips / faces / slices; checked against srctools)

This commit is contained in:
4DBug committed 2026-10-31 15:24:50 -05:00
1 parent 7a86e357ed
commit 3d01293b82
6 files changed
+540

No files matched your search

+12
View File
@@ -158,6 +158,18 @@ local list: { Entry } = {
return require("@formats/image/tim")
end,
},
{
name = "vtf",
category = "image",
path = "image/vtf",
extensions = { "vtf" },
mime = { "image/x-vtf" },
deps = { "core/Err", "core/Bytes", "Types", "codecs/image/Bcn", "codecs/image/Half" },
caps = { decode = true, encode = false, alpha = true, animation = true, versions = { "7.0", "7.1", "7.2", "7.3", "7.4", "7.5" } },
load = function()
return require("@formats/image/vtf")
end,
},
{
name = "webp",
category = "image",