mirror of
https://codeberg.org/icewind/vmt-parser.git
synced 2026-06-03 12:04:06 +02:00
WorldVertexTransition
This commit is contained in:
parent
aac06e896b
commit
7cbbad871d
5 changed files with 152 additions and 1 deletions
10
tests/data/blendrocktograss002.vmt
Normal file
10
tests/data/blendrocktograss002.vmt
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
"WorldVertexTransition"
|
||||
{
|
||||
"$basetexture" "cp_mountainlab/nature/rockwall001"
|
||||
"$basetexture2" "cp_mountainlab/nature/grass001"
|
||||
"$blendmodulatetexture" "nature/grass_blendmask"
|
||||
"$bumpmap" "nature/rockwall009_height-ssbump"
|
||||
"$ssbump" "1"
|
||||
"%keywords" "tf"
|
||||
"$surfaceprop" "dirt"
|
||||
}
|
||||
|
|
@ -6,6 +6,7 @@ use vmt_parser::from_str;
|
|||
#[test_case("tests/data/concretefloor003.vmt")]
|
||||
#[test_case("tests/data/mvm_backpack.vmt")]
|
||||
#[test_case("tests/data/water_murky.vmt")]
|
||||
#[test_case("tests/data/blendrocktograss002.vmt")]
|
||||
fn test_serde(path: &str) {
|
||||
let raw = read_to_string(path).unwrap();
|
||||
match from_str(&raw) {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
source: tests/parse.rs
|
||||
expression: result
|
||||
---
|
||||
worldvertextransition(WorldVertexTransitionMaterial(
|
||||
r#$basetexture: "cp_mountainlab/nature/rockwall001",
|
||||
r#$basetexture2: "cp_mountainlab/nature/grass001",
|
||||
r#$blendmodulatetexture: Some("nature/grass_blendmask"),
|
||||
r#$decal: false,
|
||||
r#$detail: None,
|
||||
r#$surfaceprop: Some("dirt"),
|
||||
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: 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#$distancealpha: false,
|
||||
r#$nocull: false,
|
||||
r#$translucent: false,
|
||||
r#$bumpmap: Some("nature/rockwall009_height-ssbump"),
|
||||
r#$bumpmap2: None,
|
||||
r#$lightwarptexture: None,
|
||||
r#$selfillum: false,
|
||||
r#$ssbump: true,
|
||||
r#$envmap: None,
|
||||
r#$phong: false,
|
||||
r#$nofog: false,
|
||||
r#$ignorez: false,
|
||||
))
|
||||
Loading…
Add table
Add a link
Reference in a new issue