mirror of
https://codeberg.org/icewind/vmt-parser.git
synced 2026-06-03 12:04:06 +02:00
unlit generic
This commit is contained in:
parent
ab10e2d05c
commit
12793d367c
7 changed files with 89 additions and 2 deletions
9
tests/data/mvm_backpack.vmt
Normal file
9
tests/data/mvm_backpack.vmt
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
"unlitgeneric"
|
||||
{
|
||||
"$translucent" 1
|
||||
"$baseTexture" "vgui\pve\mvm_backpack"
|
||||
"$vertexcolor" 1
|
||||
"$no_fullbright" 1
|
||||
"$ignorez" 1
|
||||
"%keywords" "tf"
|
||||
}
|
||||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -28,4 +28,5 @@ lightmappedgeneric(LightMappedGenericMaterial(
|
|||
r#$envmap: None,
|
||||
r#$phong: false,
|
||||
r#$nofog: false,
|
||||
r#$ignorez: false,
|
||||
))
|
||||
|
|
|
|||
19
tests/snapshots/parse__tests__data__mvm_backpack.vmt.snap
Normal file
19
tests/snapshots/parse__tests__data__mvm_backpack.vmt.snap
Normal 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,
|
||||
))
|
||||
Loading…
Add table
Add a link
Reference in a new issue