mirror of
https://codeberg.org/icewind/vmt-parser.git
synced 2026-06-03 12:04:06 +02:00
handrail test file
This commit is contained in:
parent
0683c4f4f2
commit
b39558cc5b
3 changed files with 37 additions and 0 deletions
4
tests/data/handrail128_skin2.vmt
Normal file
4
tests/data/handrail128_skin2.vmt
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
"VertexLitGeneric"
|
||||||
|
{
|
||||||
|
"$basetexture" "models/props_trainyard/handrail128_skin2"
|
||||||
|
}
|
||||||
|
|
@ -18,6 +18,7 @@ enum LoaderError {
|
||||||
#[test_case("tests/data/water_murky.vmt")]
|
#[test_case("tests/data/water_murky.vmt")]
|
||||||
#[test_case("tests/data/blendrocktograss002.vmt")]
|
#[test_case("tests/data/blendrocktograss002.vmt")]
|
||||||
#[test_case("tests/data/patch.vmt")]
|
#[test_case("tests/data/patch.vmt")]
|
||||||
|
#[test_case("tests/data/handrail128_skin2.vmt")]
|
||||||
fn test_serde(path: &str) {
|
fn test_serde(path: &str) {
|
||||||
let raw = read_to_string(path).unwrap();
|
let raw = read_to_string(path).unwrap();
|
||||||
match from_str(&raw) {
|
match from_str(&raw) {
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue