unlit generic

This commit is contained in:
Robin Appelman 2023-12-18 19:55:02 +01:00
commit 12793d367c
7 changed files with 89 additions and 2 deletions

View file

@ -0,0 +1,9 @@
"unlitgeneric"
{
"$translucent" 1
"$baseTexture" "vgui\pve\mvm_backpack"
"$vertexcolor" 1
"$no_fullbright" 1
"$ignorez" 1
"%keywords" "tf"
}

View file

@ -4,6 +4,7 @@ use test_case::test_case;
use vmt_parser::from_str;
#[test_case("tests/data/concretefloor003.vmt")]
#[test_case("tests/data/mvm_backpack.vmt")]
fn test_serde(path: &str) {
let raw = read_to_string(path).unwrap();
match from_str(&raw) {

View file

@ -28,4 +28,5 @@ lightmappedgeneric(LightMappedGenericMaterial(
r#$envmap: None,
r#$phong: false,
r#$nofog: false,
r#$ignorez: false,
))

View file

@ -0,0 +1,19 @@
---
source: tests/parse.rs
expression: result
---
unlitgeneric(UnlitGenericMaterial(
r#$basetexture: "vgui\\pve\\mvm_backpack",
r#$surfaceprop: None,
r#$model: false,
r#$color: Vec3((1.0, 1.0, 1.0)),
r#$alpha: 1.0,
r#$alphatest: false,
r#$nocull: false,
r#$translucent: true,
r#$ignorez: true,
r#$nofog: false,
r#$receiveflashlight: false,
singlepassflashlight: false,
r#$no_fullbright: true,
))