fix tests

This commit is contained in:
Robin Appelman 2026-07-11 21:20:47 +02:00
commit 8513568506
11 changed files with 394 additions and 424 deletions

View file

@ -2,31 +2,44 @@
source: tests/parse.rs
expression: result
---
vertexlitgeneric(VertexLitGenericMaterial(
r#$basetexture: Some("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: 0.0,
r#$nofog: false,
r#$ignorez: false,
))
{
"vertexlitgeneric": {
"$basetexture": "models/props_trainyard/handrail128_skin2",
"$detail": null,
"$decaltexture": null,
"$color2": [
1.0,
1.0,
1.0
],
"$basetexturetransform": "center 0.5 0.5 scale 1 1 rotate 0 translate 0 0",
"$color": [
1.0,
1.0,
1.0
],
"$decalscale": [
4.0,
4.0
],
"$detailblendfactor": 1.0,
"$detailblendmode": 1,
"$modelmaterial": null,
"$pointsamplemagfilter": false,
"$seamless_scale": 1.0,
"$alpha": 1.0,
"$alphatest": false,
"$alphatestreference": 1.0,
"$distancealpha": false,
"$nocull": false,
"$translucent": false,
"$bumpmap": null,
"$lightwarptexture": null,
"$selfillum": false,
"$ssbump": false,
"$envmap": null,
"$phong": 0.0,
"$nofog": false,
"$ignorez": false
}
}