1
0
Fork
You've already forked vmt-parser
0
forked from icewind/vmt-parser
Parser for source engine material files
  • Rust 99.3%
  • Nix 0.7%
2026年07月11日 01:05:18 +02:00
.forgejo/workflows workflow updates 2025年06月02日 20:11:22 +02:00
examples released vdf-reader 2023年12月21日 20:42:40 +01:00
src Make patch materials more flexible 2026年07月11日 01:05:18 +02:00
tests fix prop names 2025年02月15日 17:23:03 +01:00
.envrc vdf work 2023年12月15日 00:19:33 +01:00
.gitignore LightMappedGeneric 2023年12月18日 19:17:34 +01:00
Cargo.lock update vdf-reader 2025年03月01日 21:39:49 +01:00
Cargo.toml update repo url 2025年06月02日 20:11:57 +02:00
flake.lock flake update 2025年06月02日 20:11:08 +02:00
flake.nix flake update 2025年06月02日 20:11:08 +02:00
README.md add basic readme 2025年06月02日 20:29:37 +02:00

vmt-parser

Parser for source engine material files.

Usage

usevmt_parser::from_str;usestd::fs::read_to_string;fn main()-> Result<(),Box<dynstd::error::Error>>{letraw=read_to_string("material.vmt")?;letmaterial=from_str(&raw)?;println!("texture: {}",material.base_texture());Ok(())}

Material support

Because this crate focuses on extracting common rendering parameters from the materials, it only supports a fixed set of materials. If you need to parse a material that isn't supported by this crate, you can do a more manual parsing by using vdf-reader directly.