handrail test file

This commit is contained in:
Robin Appelman 2023-12-19 17:50:51 +01:00
commit b39558cc5b
3 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,4 @@
"VertexLitGeneric"
{
"$basetexture" "models/props_trainyard/handrail128_skin2"
}

View file

@ -18,6 +18,7 @@ enum LoaderError {
#[test_case("tests/data/water_murky.vmt")]
#[test_case("tests/data/blendrocktograss002.vmt")]
#[test_case("tests/data/patch.vmt")]
#[test_case("tests/data/handrail128_skin2.vmt")]
fn test_serde(path: &str) {
let raw = read_to_string(path).unwrap();
match from_str(&raw) {

View file

@ -0,0 +1,32 @@
---
source: tests/parse.rs
expression: result
---
vertexlitgeneric(VertexLitGenericMaterial(
r#$basetexture: "models/props_trainyard/handrail128_skin2",
r#$detail: None,
r#$decaltexture: None,
r#$color2: Vec3((1.0, 1.0, 1.0)),
r#$basetexturetransform: "center 0.5 0.5 scale 1 1 rotate 0 translate 0 0",
r#$color: Vec3((1.0, 1.0, 1.0)),
r#$decalscale: Vec2((4.0, 4.0)),
r#$detailblendfactor: 1.0,
r#$detailblendmode: 1,
r#$modelmaterial: None,
r#$pointsamplemagfilter: false,
r#$seamless_scale: 1.0,
r#$alpha: 1.0,
r#$alphatest: false,
r#$alphatestreference: 1.0,
r#$distancealpha: false,
r#$nocull: false,
r#$translucent: false,
r#$bumpmap: None,
r#$lightwarptexture: None,
r#$selfillum: false,
r#$ssbump: false,
r#$envmap: None,
r#$phong: false,
r#$nofog: false,
r#$ignorez: false,
))